| | |
| | | |
| | | class UniqueForm extends Component { |
| | | static propTpyes = { |
| | | btn: PropTypes.object, // 字典项 |
| | | dict: PropTypes.object, // 字典项 |
| | | btn: PropTypes.object, |
| | | fields: PropTypes.array, // 表单字段 |
| | | uniqueChange: PropTypes.func // 修改函数 |
| | | } |
| | |
| | | <Form {...formItemLayout} className="verify-form" id="verifycard1"> |
| | | <Row gutter={24}> |
| | | <Col span={7}> |
| | | <Form.Item label={'字段名'}> |
| | | <Form.Item label="字段名"> |
| | | {getFieldDecorator('field', { |
| | | initialValue: [], |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + '字段名!' |
| | | message: '请选择字段名!' |
| | | } |
| | | ] |
| | | })( |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | {btn.Ot !== 'requiredOnce' ? <Col span={7}> |
| | | <Form.Item label={'报错编码'}> |
| | | <Form.Item label="报错编码"> |
| | | {getFieldDecorator('errorCode', { |
| | | initialValue: 'E', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + '报错编码!' |
| | | message: '请选择报错编码!' |
| | | } |
| | | ] |
| | | })( |
| | |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {btn.Ot !== 'requiredOnce' ? <Col span={7}> |
| | | <Form.Item label={'验证类型'}> |
| | | <Form.Item label="验证类型"> |
| | | {getFieldDecorator('verifyType', { |
| | | initialValue: 'physical', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + '验证类型!' |
| | | message: '请选择验证类型!' |
| | | } |
| | | ] |
| | | })( |
| | |
| | | </Col> : null} |
| | | <Col span={3} className="add"> |
| | | <Button onClick={this.handleConfirm} className="mk-green"> |
| | | {this.props.dict['model.add']} |
| | | 添加 |
| | | </Button> |
| | | </Col> |
| | | </Row> |