| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { Form, Row, Col, Select, Button } from 'antd' |
| | | import './index.scss' |
| | | // import './index.scss' |
| | | |
| | | class UniqueForm extends Component { |
| | | static propTpyes = { |
| | |
| | | } |
| | | ] |
| | | })( |
| | | <Select |
| | | mode="multiple" |
| | | > |
| | | <Select mode="multiple"> |
| | | {fields.map(item => ( |
| | | <Select.Option key={item.uuid} value={item.field}>{item.label}</Select.Option> |
| | | <Select.Option key={item.uuid} value={item.field}>{`${item.label}(${item.field})`}</Select.Option> |
| | | ))} |
| | | </Select> |
| | | )} |
| | |
| | | {btn.Ot !== 'requiredOnce' ? <Col span={7}> |
| | | <Form.Item label="验证类型"> |
| | | {getFieldDecorator('verifyType', { |
| | | initialValue: 'physical', |
| | | initialValue: 'logic', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | ] |
| | | })( |
| | | <Select> |
| | | <Select.Option value="physical"> 物理验证 </Select.Option> |
| | | <Select.Option value="logic"> 逻辑验证 </Select.Option> |
| | | <Select.Option value="physical"> 物理验证 </Select.Option> |
| | | </Select> |
| | | )} |
| | | </Form.Item> |