人员管理修改
This commit is contained in:
parent
85c82bc2fe
commit
a058972002
|
|
@ -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('手机号格式不正确'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue