新增会议年份的默认 会议名称重复校验
This commit is contained in:
@@ -169,3 +169,25 @@ export async function checkMemberCompanyName(value, id, {err1 = memberCompanyNam
|
||||
return err1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 会议名称唯一校验
|
||||
*
|
||||
* */
|
||||
const meetingNameErrmsg = {
|
||||
err1: '请输入会议名称'
|
||||
}
|
||||
|
||||
export async function checkMeetingName(value, id, {err1 = meetingNameErrmsg.err1} = {}) {
|
||||
if (value) {
|
||||
const param = {
|
||||
confusionCode: 'meeting_name',
|
||||
fieldVal: value,
|
||||
dataId: id
|
||||
}
|
||||
return duplicateCheck(param)
|
||||
} else {
|
||||
return err1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user