mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
课程库bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user