mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
fix(account): 密码改为6位数,部门改为非必填
This commit is contained in:
@@ -12,7 +12,7 @@ export namespace AccountDTO {
|
||||
/** 真实姓名 */
|
||||
realName: string;
|
||||
/** 部门ID */
|
||||
departmentId: number;
|
||||
departmentId?: number;
|
||||
/** 岗位ID */
|
||||
positionId?: number;
|
||||
/** 备注信息 */
|
||||
|
||||
+1
-6
@@ -319,11 +319,7 @@ defineExpose({
|
||||
name="password"
|
||||
:rules="[
|
||||
{ required: true, message: '请输入密码' },
|
||||
{ min: 8, max: 20, message: '密码长度为8-20个字符' },
|
||||
{
|
||||
pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d@$!%*?&]{8,}$/,
|
||||
message: '密码必须包含大小写字母、数字,长度至少8位',
|
||||
},
|
||||
{ min: 6, max: 20, message: '密码长度为6-20个字符' },
|
||||
]"
|
||||
>
|
||||
<Input
|
||||
@@ -344,7 +340,6 @@ defineExpose({
|
||||
<Form.Item
|
||||
label="所属部门"
|
||||
name="departmentId"
|
||||
:rules="[{ required: true, message: '请选择所属部门' }]"
|
||||
>
|
||||
<Cascader
|
||||
:value="departmentPath"
|
||||
|
||||
Reference in New Issue
Block a user