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('请上传身份证正反面照片')