| | |
| | | dataIndex: 'title', |
| | | inputType: 'select', |
| | | editable: true, |
| | | required: false, |
| | | width: '12%', |
| | | options: [ |
| | | { value: 'true', text: '显示'}, |
| | |
| | | ], |
| | | render: (text, record) => { |
| | | let trans = {'true': '显示', 'false': '隐藏'} |
| | | return trans[text] || '显示' |
| | | return trans[text] || '' |
| | | } |
| | | }, |
| | | { |
| | | title: '显示', |
| | | dataIndex: 'show', |
| | | inputType: 'select', |
| | | editable: true, |
| | | required: false, |
| | | width: '12%', |
| | | options: [ |
| | | { value: 'value', text: '数值'}, |
| | | { value: 'percent', text: '百分比'} |
| | | ], |
| | | render: (text, record) => { |
| | | let trans = {'value': '数值', 'percent': '百分比'} |
| | | return trans[text] || '' |
| | | } |
| | | }, |
| | | { |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { config } = this.props |
| | | const { view, visible, datatype, plot, ramp, colorColumns, rampColorColumns, statColorColumns, rampStatColorColumns, cusColumns, baseFormlist } = this.state |
| | | const formItemLayout = { |
| | | labelCol: { |
| | |
| | | <EditOutlined title="编辑" onClick={this.showDrawer}/> |
| | | <Modal |
| | | wrapClassName="popview-modal menu-chart-edit-modal" |
| | | title="图表编辑" |
| | | title={config.type === 'bar' ? '柱状图编辑' : '折线图编辑'} |
| | | visible={visible} |
| | | width={950} |
| | | maskClosable={false} |
| | |
| | | </Form> |
| | | </Col> |
| | | <Col style={{fontSize: '12px', color: '#757575', paddingLeft: '10px'}} span={24}>注:使用自定义设置时,显示的坐标轴第一个在左侧,第二个在右侧,多余的不生效。</Col> |
| | | <EditTable actions={['edit', 'move']} data={plot.customs || []} columns={cusColumns} onChange={this.changeCustom}/> |
| | | <EditTable indexShow={false} actions={['edit', 'move']} data={plot.customs || []} columns={cusColumns} onChange={this.changeCustom}/> |
| | | </TabPane> : null} |
| | | </Tabs> |
| | | </Modal> |