评估名称重复校验

This commit is contained in:
zhangyc
2022-12-20 01:44:26 +08:00
parent 9dbc7317f6
commit ab725d60d1
2 changed files with 21 additions and 16 deletions

View File

@@ -143,7 +143,7 @@
placeholder="请输入课程名称"
v-model:value="xzinputV1"
v-model:validate="validate"
v-model:finished="finished"
:maxlength="20"
show-count
:type="2"
@@ -364,7 +364,7 @@
placeholder="请输入课程名称"
v-model:value="qdms_inputV1"
v-model:validate="validate"
v-model:finished="finished"
:maxlength="20"
show-count
:type="2"
@@ -3732,7 +3732,7 @@ export default defineComponent({
codevisible: false, //二维码弹窗
codeInfo: null, //二维码内容
codeUrl: codeUrl,
finished: false,
// 课程三级分类
options2222: [
{
@@ -4658,11 +4658,9 @@ export default defineComponent({
}
console.log("state.validate", state.validate);
if (!state.finished) {
return;
}
if (!state.validate && state.finished) {
if (!state.validate) {
message.destroy();
return message.warning("该课程名称已存在");
}