bug fix
parent
b49e43f1b7
commit
0f03bc49d2
|
|
@ -316,16 +316,22 @@ const ExperManage = (props) => {
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="userName"
|
name="userName"
|
||||||
label="姓名"
|
label="姓名"
|
||||||
rules={[{ required: true, message: "请输入姓名" }]}
|
rules={[
|
||||||
|
{ required: true, message: "请输入姓名" },
|
||||||
|
{ max: 32, message: "姓名最多输入32个字符" },
|
||||||
|
]}
|
||||||
>
|
>
|
||||||
<Input placeholder="请输入" allowClear />
|
<Input placeholder="请输入" allowClear maxLength={32} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="account"
|
name="account"
|
||||||
label="账号"
|
label="账号"
|
||||||
rules={[{ required: true, message: "请输入账号" }]}
|
rules={[
|
||||||
|
{ required: true, message: "请输入账号" },
|
||||||
|
{ max: 32, message: "账号最多输入32个字符" },
|
||||||
|
]}
|
||||||
>
|
>
|
||||||
<Input placeholder="请输入" allowClear />
|
<Input placeholder="请输入" allowClear maxLength={32} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item name="genderCode" label="性别">
|
<Form.Item name="genderCode" label="性别">
|
||||||
<Select placeholder="请选择" allowClear style={{ width: "100%" }}>
|
<Select placeholder="请选择" allowClear style={{ width: "100%" }}>
|
||||||
|
|
@ -336,8 +342,12 @@ const ExperManage = (props) => {
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item name="idCardNo" label="身份证号" rules={[idCardRule()]}>
|
<Form.Item
|
||||||
<Input placeholder="请输入" allowClear />
|
name="idCardNo"
|
||||||
|
label="身份证号"
|
||||||
|
rules={[idCardRule(), { max: 20, message: "身份证号最多输入20个字符" }]}
|
||||||
|
>
|
||||||
|
<Input placeholder="请输入" allowClear maxLength={20} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<AttachmentUpload name="certificate" maxCount={1} label="证书" />
|
<AttachmentUpload name="certificate" maxCount={1} label="证书" />
|
||||||
</Form>
|
</Form>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue