人员管理修改

This commit is contained in:
cwchen 2024-09-13 16:48:24 +08:00
parent 85c82bc2fe
commit a058972002
1 changed files with 5 additions and 1 deletions

View File

@ -328,7 +328,11 @@ export default {
}
},
validatePhone(rule, value, callback) {
if (validPhone(value)) {
let newValue = value;
if(value.indexOf('*') > -1){
newValue = this.temp.newPhone;
}
if (validPhone(newValue)) {
callback()
} else {
callback(new Error('手机号格式不正确'))