king
2020-09-04 b987be8dd8b6bc1fa01810daa1e1a60e58a3c921
src/menu/components/chart/antv-bar/index.jsx
@@ -11,7 +11,7 @@
import enUS from '@/locales/en-US/model.js'
import './index.scss'
const SettingComponent = asyncComponent(() => import('@/menu/datasourcecomponent'))
const SettingComponent = asyncComponent(() => import('@/menu/datasource'))
const SearchComponent = asyncComponent(() => import('@/menu/searchcomponent'))
const ActionComponent = asyncComponent(() => import('@/menu/actioncomponent'))
const ChartCompileForm = asyncComponent(() => import('./chartcompile'))
@@ -33,8 +33,7 @@
  UNSAFE_componentWillMount () {
    const { card, config } = this.props
    // card.dataName = Utils.getdataName()
    // this.props.updateConfig(card)
    if (card.isNew) {
      let _plot = {
        chartType: card.type, // 图表类型
@@ -82,7 +81,9 @@
      let _card = {
        uuid: card.uuid,
        type: card.type,
        format: 'array',
        format: 'array',   // 组件属性 - 数据格式
        pageable: false,   // 组件属性 - 是否可分页
        switchable: false, // 组件属性 - 数据是否可切换
        dataName: dataName,
        subtype: card.subtype,
        setting: {span: 12, height: 400, interType: 'system', name},
@@ -570,10 +571,8 @@
    return (
      <div className="menu-line-chart-edit-box" style={{height: card.setting.height || 400}}>
        <SettingComponent
          config={{...card, tables: config.tables}}
          MenuID={config.uuid}
          tableFields={config.tableFields || []}
          permFuncField={config.permFuncField || []}
          config={card}
          menu={config}
          updateConfig={this.updateComponent}
        />
        <div className="chart-header">