king
2020-11-12 f830c733cbc071f023c9a9a4e1571b7c81d672bf
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)
    })
  }