From f830c733cbc071f023c9a9a4e1571b7c81d672bf Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 12 十一月 2020 11:47:33 +0800 Subject: [PATCH] 2020-11-12 --- src/menu/components/chart/antv-bar/chartcompile/index.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/menu/components/chart/antv-bar/chartcompile/index.jsx b/src/menu/components/chart/antv-bar/chartcompile/index.jsx index 813701b..169aff2 100644 --- a/src/menu/components/chart/antv-bar/chartcompile/index.jsx +++ b/src/menu/components/chart/antv-bar/chartcompile/index.jsx @@ -12,6 +12,7 @@ class LineChartDrawerForm extends Component { static propTpyes = { + MenuType: PropTypes.any, dict: PropTypes.object, plot: PropTypes.object, sysRoles: PropTypes.array, @@ -67,7 +68,7 @@ } showDrawer = () => { - const { config, sysRoles } = this.props + const { config, sysRoles, MenuType } = this.props let fieldName = {} config.columns.forEach(col => { @@ -76,13 +77,18 @@ } }) + if (config.plot.correction) { + delete config.plot.correction // 鏁版嵁淇锛堝凡寮冪敤锛� + config.plot.barSize = 35 + } + this.setState({ visible: true, view: 'normal', disabled: config.plot.datatype === 'statistics', fieldName: fieldName, plot: fromJS(config.plot).toJS(), - formlist: getBarOrLineChartOptionForm(config.plot, config.columns, sysRoles) + formlist: getBarOrLineChartOptionForm(config.plot, config.columns, sysRoles, MenuType) }) } -- Gitblit v1.8.0