| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | // import { fromJS } from 'immutable' |
| | | import { Form, Row, Col, Input, Select, Radio, Tooltip, InputNumber, Cascader } from 'antd' |
| | | import { Form, Row, Col, Input, Select, Radio, Tooltip, InputNumber, Cascader, notification } from 'antd' |
| | | import { QuestionCircleOutlined } from '@ant-design/icons' |
| | | import { formRule } from '@/utils/option.js' |
| | | |
| | |
| | | return new Promise((resolve, reject) => { |
| | | this.props.form.validateFieldsAndScroll((err, values) => { |
| | | if (!err) { |
| | | if (values.intertype === 'outer' && values.sysInterface === 'true' && !values.outerFunc) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '使用单点系统请填写外部函数!', |
| | | duration: 10 |
| | | }) |
| | | return |
| | | } |
| | | resolve(values) |
| | | } else { |
| | | reject(err) |