基本资料-性别、单位非必填

This commit is contained in:
caishi 2021-12-24 14:35:07 +08:00
parent 4ab36af1a9
commit ec2d51e0d3
1 changed files with 3 additions and 3 deletions

View File

@ -76,9 +76,9 @@ export default Form.create()(
<div> <div>
<Form.Item label="性别"> <Form.Item label="性别">
{getFieldDecorator("gender",{ {getFieldDecorator("gender",{
rules:[{required:true,message:"请选择性别"}] rules:[]
})( })(
<Radio.Group> <Radio.Group defaultValue={1}>
<Radio value={1}></Radio> <Radio value={1}></Radio>
<Radio value={0}></Radio> <Radio value={0}></Radio>
</Radio.Group> </Radio.Group>
@ -87,7 +87,7 @@ export default Form.create()(
</div> </div>
<Form.Item label="单位名称"> <Form.Item label="单位名称">
{getFieldDecorator("custom_department",{ {getFieldDecorator("custom_department",{
rules:[{required:true,message:"请输入单位名称"}] rules:[]
})( })(
<Input placeholder="请输入单位名称" maxLength={30} style={{width:"400px"}}/> <Input placeholder="请输入单位名称" maxLength={30} style={{width:"400px"}}/>
)} )}