| | |
| | | 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')) |
| | |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | const { card, config } = this.props |
| | | // card.dataName = Utils.getdataName() |
| | | // this.props.updateConfig(card) |
| | | |
| | | if (card.isNew) { |
| | | let _plot = { |
| | | chartType: card.type, // 图表类型 |
| | |
| | | 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}, |
| | |
| | | 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"> |