From dd440f90c4d94a5d86fcfd54cdf165a9b1d214c0 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Tue, 21 Dec 2021 15:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8D=E5=AD=97=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/manage/list/cityWide/cityWideIn.vue | 9 +++++---- src/pages/manage/list/cityWide/cityWideOut.vue | 9 +++++---- src/utils/utilFunction.js | 13 +++++++++---- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/pages/manage/list/cityWide/cityWideIn.vue b/src/pages/manage/list/cityWide/cityWideIn.vue index 611f523..7b3e22c 100644 --- a/src/pages/manage/list/cityWide/cityWideIn.vue +++ b/src/pages/manage/list/cityWide/cityWideIn.vue @@ -27,7 +27,7 @@ - + @@ -36,7 +36,7 @@ - + @@ -94,7 +94,7 @@ diff --git a/src/pages/manage/list/cityWide/cityWideOut.vue b/src/pages/manage/list/cityWide/cityWideOut.vue index b522255..6a1e1e3 100644 --- a/src/pages/manage/list/cityWide/cityWideOut.vue +++ b/src/pages/manage/list/cityWide/cityWideOut.vue @@ -27,7 +27,7 @@ - + - + @@ -93,7 +93,7 @@ diff --git a/src/utils/utilFunction.js b/src/utils/utilFunction.js index 0eba820..b73f1a1 100644 --- a/src/utils/utilFunction.js +++ b/src/utils/utilFunction.js @@ -25,11 +25,16 @@ const checkHanzi = function(val, form, prop) { } const checkName = function(val, form, prop) { - // // 检查符号 + // 检查符号 const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im; - // // 检查空格 - // const tmpCheck = val.substr(val.length-1, 1); - if(charReg.test(val)) { + // // 检查数字 + const charReg2 = /^[0-9]*$/; + const tmpCheck = val.substr(val.length-1, 1); + if(val.length