| | |
| | | } |
| | | view1.axis('value', yc) |
| | | |
| | | view1.legend(false) |
| | | // view1.legend(false) |
| | | |
| | | if (plot.mutilBar !== 'stack') { |
| | | let _chart = view1 |
| | |
| | | |
| | | view2.data(dv.rows) |
| | | |
| | | view2.legend(false) |
| | | // view2.legend(false) |
| | | |
| | | fields.forEach(item => { |
| | | if (item.chartType === 'bar' && !Bar_axis.length) { |
| | |
| | | |
| | | return ( |
| | | <div className="quote-wrap"> |
| | | <Button icon="appstore" onClick={() => {this.setState({visible: true})}}>组件引用</Button> |
| | | <Button icon="appstore" onClick={() => {this.setState({visible: true})}}>关联菜单栏</Button> |
| | | <Modal |
| | | title="组件引用" |
| | | title="关联菜单栏" |
| | | visible={visible} |
| | | width={500} |
| | | maskClosable={false} |
| | |
| | | <Form {...formItemLayout}> |
| | | <Row gutter={24}> |
| | | <Col span={20}> |
| | | <Form.Item label="菜单"> |
| | | <Form.Item label="菜单栏"> |
| | | {getFieldDecorator('menu', { |
| | | initialValue: '', |
| | | rules: [{ |
| | | required: true, |
| | | message: '请选择菜单!' |
| | | message: '请选择菜单栏!' |
| | | }] |
| | | })( |
| | | <Select> |
| | |
| | | view1.scale('value', c) |
| | | view1.axis('value', plot.$yc) |
| | | |
| | | view1.legend(false) |
| | | // view1.legend(false) |
| | | |
| | | let colorIndex = 0 |
| | | |
| | |
| | | } |
| | | |
| | | view2.data(dv.rows) |
| | | view2.legend(false) |
| | | // view2.legend(false) |
| | | |
| | | plot.customs.forEach(item => { |
| | | if (item.chartType === 'bar' && !plot.Bar_axis) { |