update 用户管理-手机号不验重

This commit is contained in:
赵霄
2023-11-15 17:09:18 +08:00
parent eefba03bd7
commit d6ca1c2602
+16 -15
View File
@@ -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')))
}