From 754f2fa9c8076a5d13ad7476eb9bc5984f78c99c Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 21 四月 2023 13:25:32 +0800 Subject: [PATCH] 修改用户管理 --- src/views/system/user/component/userDialog.vue | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/views/system/user/component/userDialog.vue b/src/views/system/user/component/userDialog.vue index f3a0d93..b5ce486 100644 --- a/src/views/system/user/component/userDialog.vue +++ b/src/views/system/user/component/userDialog.vue @@ -114,7 +114,6 @@ depId: [{ required: true, message: '请选择部门', trigger: 'change' }], phone: [{ required: true, message: '请填写手机号', trigger: 'blur' }], idType: [{ required: true, message: '请选择证件类型', trigger: 'blur' }], - idSerial: [{ required: true, message: '请填写证件号码', trigger: 'blur' }], pwd: [{ required: true, message: '请输入账户密码', trigger: 'blur' }], }, departmentData: [], // 部门数据 @@ -167,7 +166,7 @@ }); return } - if(verifyIdCard(state.userForm.idSerial) == false){ + if(state.userForm.idSerial!=='' && verifyIdCard(state.userForm.idSerial) == false){ ElMessage({ type: 'warning', message: '请输入正确的证件号码', -- Gitblit v1.9.2