课程库bug

This commit is contained in:
zhangyc
2022-12-13 00:41:11 +08:00
parent 178b3fd212
commit 89e889506b
3 changed files with 75 additions and 10 deletions

View File

@@ -145,6 +145,7 @@
placeholder="请输入课程名称"
v-model:value="xzinputV1"
v-model:validate="validate"
v-model:finished="finished"
:maxlength="20"
show-count
:type="2"
@@ -306,6 +307,7 @@
<!-- 确定新建面授课弹窗 -->
<CourseModal
ref="CourseModalRef"
v-model:xzinputV1="xzinputV1"
@visibleClose="closeOnlineCoursevisible"
/>
<!-- 查看面授课弹框 start -->
@@ -364,6 +366,7 @@
placeholder="请输入课程名称"
v-model:value="qdms_inputV1"
v-model:validate="validate"
v-model:finished="finished"
:maxlength="20"
show-count
:type="2"
@@ -628,8 +631,8 @@
<span style="margin-right: 14px">授课教师</span>
</div>
<div class="item_inp">
<div class="i1_input">
<ProjectManager
<div class="select" style="width:436px; " >
<ProjectManager
v-model:value="member.value"
v-model:name="member.name"
></ProjectManager>
@@ -2798,6 +2801,7 @@ import {
onBeforeUnmount,
watch,
} from "vue";
import * as api from "../../api/indexInvist.js";
import { message } from "ant-design-vue";
@@ -3552,7 +3556,7 @@ export default defineComponent({
value4: "",
//选择线上还是面授
xzinputV1: "",
valueE1: 2,
valueE1: "",
valueE2: "",
//确定面授
ft_eidt: false,
@@ -3643,6 +3647,7 @@ export default defineComponent({
codevisible: false, //二维码弹窗
codeInfo: null, //二维码内容
codeUrl: codeUrl,
finished:false,
// 课程三级分类
options2222: [
{
@@ -4545,16 +4550,26 @@ export default defineComponent({
message.destroy();
return message.warning("请输入必填项");
}
console.log("state.validate",state.validate);
if (!state.validate) {
if(!state.finished){
return;
}
if (!state.validate && state.finished) {
message.destroy();
return message.warning("面授课名称已存在");
return message.warning("该课程名称已存在");
}
console.log(
"state.bs_hs && state.valueE1 == 2",
state.bs_hs,
state.valueE1 == 2
);
if( !state.valueE1 && !state.valueE2){
message.destroy();
return message.warning("请选择课程形式");
}
if (state.valueE1 === 2) {
state.of_hs = false;