From 886b1215bcaa338987d313a42fba51bcdfcb3ecb Mon Sep 17 00:00:00 2001 From: water_xu Date: Wed, 3 Jul 2024 17:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=B9=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=BB=B4=E6=8A=A4=E7=AE=A1=E7=90=86=20-=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/PersonManager/user/components/edit.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/PersonManager/user/components/edit.vue b/src/views/PersonManager/user/components/edit.vue index 5cd63b7..745e42d 100644 --- a/src/views/PersonManager/user/components/edit.vue +++ b/src/views/PersonManager/user/components/edit.vue @@ -632,7 +632,7 @@ export default { { required: true, message: '请输入手机号码', trigger: 'blur' }, { min: 11, max: 11, message: '请输入11位手机号码', trigger: 'blur' }, { - pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[0-9])\d{8}$/, + pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0-9]|18[0-9]|19[0-9])\d{8}$/, message: '请输入正确的手机号码' }], ROLE_ID: [{ required: true, message: '请选择角色', trigger: 'change' }], @@ -1063,7 +1063,8 @@ export default { }, // 保存 confirm() { - this.$refs.form.validate(valid => { + this.$refs.form.validate((valid, errorFields) => { + console.log(errorFields) if (valid) { if (this.form.userCardFile.length < 2) { this.$message.error('请上传身份证正反面照片')