相关方人员账号维护管理 - 修改手机号正则表达式规则
parent
b57c58488b
commit
886b1215bc
|
@ -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('请上传身份证正反面照片')
|
||||
|
|
Loading…
Reference in New Issue