From cd42d41344f0f780e0c0ac0a3625aeb78160f9dd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 19 六月 2020 19:58:52 +0800 Subject: [PATCH] 2020-06-19 --- src/mob/mobcard/mutilform/index.jsx | 35 ++++++++++++++++++++++++++++++++++- 1 files changed, 34 insertions(+), 1 deletions(-) diff --git a/src/mob/mobcard/mutilform/index.jsx b/src/mob/mobcard/mutilform/index.jsx index bbc2592..0ba42e2 100644 --- a/src/mob/mobcard/mutilform/index.jsx +++ b/src/mob/mobcard/mutilform/index.jsx @@ -1,6 +1,6 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Row, Col, Input, Select } from 'antd' +import { Form, Row, Col, Input, Select, Radio } from 'antd' import './index.scss' class MainSearch extends Component { @@ -81,6 +81,39 @@ )} </Form.Item> </Col> + <Col span={24}> + <Form.Item label="搴旂敤缂栫爜"> + {getFieldDecorator('keiNo', { + initialValue: card ? card.keiNo : '', + rules: [{ + required: true, + message: this.props.dict['mob.required.input'] + '搴旂敤缂栫爜!' + }, { + pattern: /^[a-zA-Z_]*$/ig, + message: '搴旂敤缂栫爜鍙厑璁稿寘鍚ぇ灏忓啓瀛楁瘝鍙奯!' + }, { + max: 20, + message: '搴旂敤缂栫爜涓嶅彲瓒呰繃20涓瓧绗�!' + }] + })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit} />)} + </Form.Item> + </Col> + <Col span={24}> + <Form.Item label="鏉冮檺绠$悊"> + {getFieldDecorator('role_manage', { + initialValue: card ? card.role_manage || 'false' : 'false', + rules: [{ + required: true, + message: this.props.dict['mob.required.select'] + '鏄惁鍚敤鏉冮檺绠$悊!' + }] + })( + <Radio.Group> + <Radio value="true">鍚敤</Radio> + <Radio value="false">涓嶅惎鐢�</Radio> + </Radio.Group> + )} + </Form.Item> + </Col> </Row> </Form> ) -- Gitblit v1.8.0