rev:新增登录次数限制,密码正则表达式校验,发货区AGV任务生成添加开关

This commit is contained in:
2024-05-08 17:05:39 +08:00
parent fe191c9ad5
commit a60a4229ff
3 changed files with 74 additions and 7 deletions

View File

@@ -377,6 +377,10 @@ export default {
personName: [
{ required: true, message: '请输入用户姓名', trigger: 'blur' },
{ min: 2, max: 20, message: '长度在 2 到 20 个字符', trigger: 'blur' }
],
password: [
{ required: true, message: '请输入用户密码', trigger: 'blur' },
{ pattern: /^(?=.*\d)(?=.*[A-z])[\da-zA-Z]{6,12}$/, message: '长度6位以上数字+密码', trigger: 'blur' }
]
},
syncDrawer: false,
@@ -463,7 +467,7 @@ export default {
},
// 新增前将多选的值设置为空
[CRUD.HOOK.beforeToAdd]() {
this.form.password = '123456'
// this.form.password = '123456'
this.roleDatas = []
},
// 初始化编辑时候的角色与岗位
@@ -626,10 +630,10 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
row.password = '123456'
row.password = 'HL123456'
crudUser.edit(row).then(res => {
this.crud.toQuery()
this.crud.notify('密码重置成功,密码:123456', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.notify('密码重置成功,密码:HL123456', CRUD.NOTIFICATION_TYPE.SUCCESS)
})
})
},