mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
评估名称重复校验
This commit is contained in:
@@ -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("该课程名称已存在");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user