king
2020-11-25 42fae277ae5ebe794fc070bf38482a919eb661fc
src/menu/components/chart/antv-bar/chartcompile/index.jsx
@@ -19,7 +19,6 @@
    MenuType: PropTypes.any,
    dict: PropTypes.object,
    plot: PropTypes.object,
    sysRoles: PropTypes.array,
    config: PropTypes.object,
    plotchange: PropTypes.func
  }
@@ -148,7 +147,7 @@
  }
  showDrawer = () => {
    const { config, sysRoles, MenuType } = this.props
    const { config, MenuType } = this.props
    let fieldName = {}
    config.columns.forEach(col => {
@@ -168,7 +167,7 @@
      datatype: config.plot.datatype || 'query',
      fieldName: fieldName,
      plot: fromJS(config.plot).toJS(),
      baseFormlist: getBaseForm(config.plot, sysRoles, MenuType),
      baseFormlist: getBaseForm(config.plot, MenuType),
      formlist: getOptionForm(config.plot, config.columns, MenuType)
    })
  }
@@ -266,8 +265,8 @@
              })(
                <Select mode={item.multi ? 'multiple' : ''}>
                  {item.options.map((option, index) =>
                    <Select.Option key={index} value={option.field}>
                      {option.label}
                    <Select.Option key={index} value={option.field || option.value}>
                      {option.label || option.text}
                    </Select.Option>
                  )}
                </Select>