king
2022-10-28 aa41be24e83653077d85860cb70882551912af24
src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -3,7 +3,7 @@
import { is, fromJS } from 'immutable'
import { Chart } from '@antv/g2'
import DataSet from '@antv/data-set'
import { Spin, Empty, notification } from 'antd'
import { Spin, Empty, notification, Modal } from 'antd'
import { DownloadOutlined } from '@ant-design/icons'
import moment from 'moment'
@@ -534,11 +534,18 @@
        loading: false
      })
      this.timer && this.timer.stop()
      notification.error({
        top: 92,
        message: result.message,
        duration: 10
      })
      if (result.ErrCode === 'N') {
        Modal.error({
          title: result.message,
        })
      } else {
        notification.error({
          top: 92,
          message: result.message,
          duration: 10
        })
      }
    }
  }
@@ -1178,7 +1185,7 @@
      view1.scale('value', c)
      view1.axis('value', plot.$yc)
  
      view1.legend(false)
      // view1.legend(false)
      let colorIndex = 0
  
@@ -1312,7 +1319,7 @@
    }
    view2.data(dv.rows)
    view2.legend(false)
    // view2.legend(false)
    plot.customs.forEach(item => {
      if (item.chartType === 'bar' && !plot.Bar_axis) {