| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Modal, Form, Row, Col, Select, Radio, Tooltip, Input, InputNumber, Tabs, Button } from 'antd' |
| | | import { Modal, Form, Row, Col, Select, Radio, notification, Tooltip, Input, InputNumber, Tabs, Button } from 'antd' |
| | | import { QuestionCircleOutlined, EditOutlined, PlusOutlined } from '@ant-design/icons' |
| | | |
| | | import Utils from '@/utils/utils.js' |
| | |
| | | }) |
| | | } |
| | | |
| | | if (!plot.Xaxis && (tab === 'color' || tab === 'custom')) { |
| | | this.setState({ |
| | | plot: _plot, |
| | | view: 'normal' |
| | | }) |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '请添加图表设置。', |
| | | duration: 3 |
| | | }) |
| | | return |
| | | } |
| | | |
| | | this.setState({ |
| | | plot: _plot, |
| | | view: tab |
| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { fromJS } from 'immutable' |
| | | import { Modal, Form, Row, Col, Select, Radio, Tooltip, Input, InputNumber, Tabs, Button } from 'antd' |
| | | import { Modal, Form, Row, Col, Select, Radio, Tooltip, Input, InputNumber, notification, Tabs, Button } from 'antd' |
| | | import { QuestionCircleOutlined, EditOutlined } from '@ant-design/icons' |
| | | |
| | | import Utils from '@/utils/utils.js' |
| | |
| | | this.baseRef.handleConfirm().then(res => { |
| | | let _plot = {...plot, ...res} |
| | | |
| | | if (!plot.valueField && tab === 'color') { |
| | | this.setState({ |
| | | plot: _plot, |
| | | view: 'normal' |
| | | }) |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '请添加图表设置。', |
| | | duration: 3 |
| | | }) |
| | | return |
| | | } |
| | | this.setState({ |
| | | plot: _plot, |
| | | view: tab |
| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { fromJS } from 'immutable' |
| | | import { Modal, Form, Row, Col, Select, Radio, Tooltip, Input, InputNumber, Tabs, Button } from 'antd' |
| | | import { Modal, Form, Row, Col, Select, Radio, Tooltip, Input, notification, InputNumber, Tabs, Button } from 'antd' |
| | | import { QuestionCircleOutlined, EditOutlined } from '@ant-design/icons' |
| | | |
| | | import Utils from '@/utils/utils.js' |
| | |
| | | this.baseRef.handleConfirm().then(res => { |
| | | let _plot = {...plot, ...res} |
| | | |
| | | if (!plot.Xaxis && tab === 'color') { |
| | | this.setState({ |
| | | plot: _plot, |
| | | view: 'normal' |
| | | }) |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '请添加图表设置。', |
| | | duration: 3 |
| | | }) |
| | | return |
| | | } |
| | | this.setState({ |
| | | plot: _plot, |
| | | view: tab |