king
2021-06-02 e543372cc70a19ff2630c79d8421c2c593e54e5f
src/menu/components/chart/antv-bar/chartcompile/index.jsx
@@ -16,7 +16,6 @@
class LineChartDrawerForm extends Component {
  static propTpyes = {
    MenuType: PropTypes.any,
    dict: PropTypes.object,
    plot: PropTypes.object,
    config: PropTypes.object,
@@ -147,7 +146,7 @@
  }
  showDrawer = () => {
    const { config, MenuType } = this.props
    const { config } = this.props
    let fieldName = {}
    config.columns.forEach(col => {
@@ -167,8 +166,8 @@
      datatype: config.plot.datatype || 'query',
      fieldName: fieldName,
      plot: fromJS(config.plot).toJS(),
      baseFormlist: getBaseForm(config.plot, MenuType),
      formlist: getOptionForm(config.plot, config.columns, MenuType)
      baseFormlist: getBaseForm(config.plot),
      formlist: getOptionForm(config.plot, config.columns)
    })
  }
@@ -182,7 +181,7 @@
        formlist: formlist.map(item => {
          if (['Yaxis'].includes(item.key)) {
            item.hidden = val === 'statistics'
          } else if (['InfoType', 'InfoValue', 'InfoDefNumber'].includes(item.key)) {
          } else if (['InfoType', 'InfoValue'].includes(item.key)) {
            item.hidden = val !== 'statistics'
          }
          return item
@@ -493,7 +492,7 @@
    return (
      <div className="line-chart-drawer-form">
        <Icon type="edit" onClick={this.showDrawer} />
        <Icon type="edit" title="编辑" onClick={this.showDrawer} />
        <Modal
          wrapClassName="popview-modal menu-chart-edit-modal"
          title="图表编辑"