相关方人员账号维护管理 - 修改手机号正则表达式规则

xuyifeng-0724-人员中台对接-pet
water_xu 2024-07-03 17:18:24 +08:00
parent b57c58488b
commit 886b1215bc
1 changed files with 3 additions and 2 deletions

View File

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