From 54054c4bccf78b778fa4c6229bda4c3ee9f643ad Mon Sep 17 00:00:00 2001 From: yy <11@11.com> Date: Mon, 3 Jun 2024 15:08:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=AD=A3=E5=88=99=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=20=E6=97=A5=E5=BF=97=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/user-info.vue | 10 +- src/views/login/login.vue | 880 +++++++++--------- src/views/logs-manage/form/log-form.vue | 21 +- src/views/logs-manage/logs-manage.vue | 4 +- .../permissions-manage/form/doctor-form.vue | 342 +++---- 5 files changed, 653 insertions(+), 604 deletions(-) diff --git a/src/components/user-info.vue b/src/components/user-info.vue index e27bfb6..3b939e3 100644 --- a/src/components/user-info.vue +++ b/src/components/user-info.vue @@ -88,11 +88,11 @@ const validatePassword = (rule: any, value: any, callback: any) => { //自定义校验规则函数 const validatorPassword = (rule: any, value: any, callback: any) => { - if (value.length >= 6) { - callback(); - } else { - callback(new Error('密码长度至少6位')); - } + if (!(new RegExp(REGEXP.PASSWORD).test(value))) { + callback("8~16位字母或数字(区分大小写)"); + } else { + callback() + } } const validatorPhone = (rule: any, value: any, callback: any) => { diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 91a4a94..5b87396 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -1,127 +1,133 @@ diff --git a/src/views/logs-manage/form/log-form.vue b/src/views/logs-manage/form/log-form.vue index 926e7f3..06942f6 100644 --- a/src/views/logs-manage/form/log-form.vue +++ b/src/views/logs-manage/form/log-form.vue @@ -6,25 +6,24 @@ - - + + - - + + - - + + - - + +