update 校验重复接口调整

This commit is contained in:
danshihao
2023-11-15 11:10:49 +08:00
parent 1f11e04cde
commit 549a2335f5
9 changed files with 90 additions and 24 deletions
@@ -83,6 +83,7 @@
import { httpAction } from '@/api/manage'
import pick from 'lodash.pick'
import { duplicateCheck } from '@/api/api'
import { getConfusionCode } from '@/utils/util'
export default {
name: 'SysMessageTemplateModal',
@@ -184,9 +185,11 @@ export default {
})
},
validateTemplateCode (rule, value, callback) {
const confusionCode = getConfusionCode('sys_sms_template', 'template_code')
const params = {
tableName: 'sys_sms_template',
fieldName: 'template_code',
// tableName: 'sys_sms_template',
// fieldName: 'template_code',
confusionCode,
fieldVal: value,
dataId: this.model.id
}