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