add
This commit is contained in:
parent
18088dd732
commit
bb5ae7dcec
|
@ -123,7 +123,7 @@ export const RegisterForm = ({ onSubmit, isLoading }: RegisterFormProps) => {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item noStyle name={"office"}>
|
<Form.Item noStyle name={"office"}>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入办公室地点"
|
placeholder="请输入办公地点"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
allowClear
|
allowClear
|
||||||
|
@ -151,10 +151,10 @@ export const RegisterForm = ({ onSubmit, isLoading }: RegisterFormProps) => {
|
||||||
noStyle
|
noStyle
|
||||||
rules={[
|
rules={[
|
||||||
{ message: "请输入证件号" },
|
{ message: "请输入证件号" },
|
||||||
{
|
// {
|
||||||
pattern: /^\d{5,12}$/,
|
// pattern: /^\d{5,12}$/,
|
||||||
message: "请输入有效的证件号(5-12位数字)",
|
// message: "请输入有效的证件号(5-12位数字)",
|
||||||
},
|
// },
|
||||||
]}>
|
]}>
|
||||||
<Input placeholder="证件号" />
|
<Input placeholder="证件号" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
|
@ -185,13 +185,13 @@ export default function StaffForm() {
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
rules={[
|
// rules={[
|
||||||
{
|
// {
|
||||||
required: false,
|
// required: false,
|
||||||
pattern: /^\d{5,18}$/,
|
// pattern: /^\d{5,18}$/,
|
||||||
message: "请输入正确的证件号(数字)",
|
// message: "请输入正确的证件号(数字)",
|
||||||
},
|
// },
|
||||||
]}
|
// ]}
|
||||||
noStyle
|
noStyle
|
||||||
name={"officerId"}>
|
name={"officerId"}>
|
||||||
<Input
|
<Input
|
||||||
|
@ -229,7 +229,7 @@ export default function StaffForm() {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item noStyle name={"office"}>
|
<Form.Item noStyle name={"office"}>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入办公室地点(可选)"
|
placeholder="请输入办公地点(可选)"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
allowClear
|
allowClear
|
||||||
|
|
|
@ -204,13 +204,15 @@ export default function StaffForm() {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
noStyle
|
noStyle
|
||||||
rules={[
|
rules={
|
||||||
{
|
[
|
||||||
required: false,
|
// {
|
||||||
pattern: /^\d{5,18}$/,
|
// required: false,
|
||||||
message: "请输入正确的证件号(数字)",
|
// pattern: /^\d{5,18}$/,
|
||||||
},
|
// message: "请输入正确的证件号(数字)",
|
||||||
]}
|
// },
|
||||||
|
]
|
||||||
|
}
|
||||||
name={"officerId"}
|
name={"officerId"}
|
||||||
label="证件号">
|
label="证件号">
|
||||||
<Input
|
<Input
|
||||||
|
@ -248,7 +250,7 @@ export default function StaffForm() {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item noStyle name={"office"}>
|
<Form.Item noStyle name={"office"}>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入办公室地点(可选)"
|
placeholder="请输入办公地点(可选)"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
allowClear
|
allowClear
|
||||||
|
|
Loading…
Reference in New Issue