From eea50bdc17f13fca448a372494ceb334500e07c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 17 Feb 2023 14:09:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/InformationCategory/index.vue | 34 +++++++------ src/views/system/classifyItem/index.vue | 8 --- src/views/system/person/index.vue | 15 ++++-- src/views/system/person/indexjs.js | 25 ++++++---- src/views/system/poser/index.vue | 24 ++++----- src/views/system/stationAvatar/index.vue | 2 +- src/views/system/stationClassify/index.vue | 8 --- src/views/system/stationItem/index.vue | 6 +-- src/views/system/stationItem/stationItemjs.js | 49 +++++++++---------- 9 files changed, 84 insertions(+), 87 deletions(-) diff --git a/src/views/system/InformationCategory/index.vue b/src/views/system/InformationCategory/index.vue index 24c1385..a4760d1 100644 --- a/src/views/system/InformationCategory/index.vue +++ b/src/views/system/InformationCategory/index.vue @@ -269,18 +269,18 @@ + - - - + + - + + diff --git a/src/views/system/person/indexjs.js b/src/views/system/person/indexjs.js index 00a4f20..e97de45 100644 --- a/src/views/system/person/indexjs.js +++ b/src/views/system/person/indexjs.js @@ -16,9 +16,14 @@ export default { // 验证手机号的规则 var checkMobile = (rule, value, cb) => { // 验证手机号的正则表达式 - const regMobile = - /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/; - if (regMobile.test(value)) { + // const regMobile = + // /^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[0-9]|15[0-9]|16[2567]|17[0-9]|18[0-9]|19[0-9])+\d{8})$/;; + const isPhone = /^1([38][0-9]|4[014-9]|[59][0-35-9]|6[2567]|7[0-8])\d{8}$/ //11位合法手机号码 + const isMob0 = /0\d{2,3}\d{7,8}/ //不带-的座机:02985111752 + const isMob1 = /^([0-9]{3,4}-)?[0-9]{7,8}$/ //带一个-:029-85111752 + const isMob2 = /^([0-9]{3,4}-)?[0-9]{7,8}$/ //带二个-:029-8511-1752 + const isMob3 = /^\d{3,4}-\d{3,4}-\d{3,4}$/; //带三个-: 0752-250-520 + if (isPhone.test(value) || isMob0.test(value) || isMob1.test(value) || isMob2.test(value) || isMob3.test(value)) { return cb(); } cb(new Error("请输入正确的联系电话")); @@ -26,9 +31,12 @@ export default { // 验证手机号的规则 var checkMobile2 = (rule, value, cb) => { // 验证手机号的正则表达式 - const regMobile = - /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/; - if (regMobile.test(value)) { + // const regMobile = + // /^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[0-9]|15[0-9]|16[2567]|17[0-9]|18[0-9]|19[0-9])+\d{8})$/;; + const isPhone = /^1([38][0-9]|4[014-9]|[59][0-35-9]|6[2567]|7[0-8])\d{8}$/ //11位合法手机号码 + const isMob1 = /0\d{2,3}\d{7,8}/ //不带-的座机:02985111752 + const isMob2 = /^([0-9]{3,4}-)?[0-9]{7,8}$/ //带一个-:029-85111752 + if (isPhone.test(value) || isMob1.test(value) || isMob2.test(value)) { return cb(); } cb(new Error("请输入正确的联系电话")); @@ -53,15 +61,12 @@ export default { value: "NURSE_TEACHER", }, ], - innerVisible: false, innerVisible2: false, innerVisiblexg: false, innerVisiblexg2: false, - // 遮罩层 loading: true, - // 用户导入参数 upload: { // 是否显示弹出层(用户导入) @@ -585,4 +590,4 @@ export default { ); }, }, -}; \ No newline at end of file +}; diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue index 67cd7b1..c15a843 100644 --- a/src/views/system/poser/index.vue +++ b/src/views/system/poser/index.vue @@ -193,7 +193,7 @@ @@ -335,7 +335,7 @@ - +