update 用户管理-手机号不验重
This commit is contained in:
@@ -437,21 +437,22 @@ export default {
|
||||
callback()
|
||||
} else {
|
||||
if (new RegExp(/^1[345789][0-9]\d{8}$/).test(value)) {
|
||||
const confusionCode = getConfusionCode('sys_user', 'phone')
|
||||
const params = {
|
||||
// tableName: 'sys_user',
|
||||
// fieldName: 'phone',
|
||||
confusionCode,
|
||||
fieldVal: value,
|
||||
dataId: this.userId
|
||||
}
|
||||
duplicateCheck(params).then((res) => {
|
||||
if (res.success) {
|
||||
callback()
|
||||
} else {
|
||||
callback(new Error(this.$t('user.phoneNumberExists')))
|
||||
}
|
||||
})
|
||||
callback()
|
||||
// const confusionCode = getConfusionCode('sys_user', 'phone')
|
||||
// const params = {
|
||||
// // tableName: 'sys_user',
|
||||
// // fieldName: 'phone',
|
||||
// confusionCode,
|
||||
// fieldVal: value,
|
||||
// dataId: this.userId
|
||||
// }
|
||||
// duplicateCheck(params).then((res) => {
|
||||
// if (res.success) {
|
||||
// callback()
|
||||
// } else {
|
||||
// callback(new Error(this.$t('user.phoneNumberExists')))
|
||||
// }
|
||||
// })
|
||||
} else {
|
||||
callback(new Error(this.$t('user.enterPhoneCorrect')))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user