面授课bug

This commit is contained in:
zhangyc
2022-12-08 14:53:33 +08:00
parent f93419b046
commit ef10e097cb
2 changed files with 30 additions and 8 deletions

View File

@@ -191,6 +191,7 @@
alt=""
/>
</div>
<span>授课形式</span>
</div>
<a-radio-group v-model:value="valueE1">
@@ -220,6 +221,7 @@
</div>
</a-radio-group>
</div>
<!--
<div class="b_sup" :style="{ display: bs_hs ? 'block' : 'none' }">
<div class="ofmb_items">
<div class="signbox">
@@ -229,6 +231,7 @@
alt=""
/>
</div>
<span>是否设置目录</span>
</div>
<a-radio-group v-model:value="valueE2">
@@ -254,7 +257,7 @@
</div>
</a-radio-group>
</div>
</div>
</div> -->
<div class="b_footer">
<div class="btn btn5" @click="of_exit1">
<div class="btnText">取消</div>
@@ -3381,7 +3384,7 @@ export default defineComponent({
value4: "",
//选择线上还是面授
xzinputV1: "",
valueE1: "",
valueE1: 2,
valueE2: "",
//确定面授
ft_eidt: false,
@@ -4187,20 +4190,25 @@ export default defineComponent({
}
};
const createft = () => {
if (state.bs_hs == false && state.valueE1 != "") {
if(!state.valueE1 || !state.xzinputV1){
message.destroy();
return message.warning("请输入必填项");
}
console.log(" state.valueE1", state.valueE1,!state.bs_hs && state.valueE1 == 2,state.bs_hs,state.valueE1 == 2);
if (state.bs_hs && state.valueE1 == 2) {
state.of_hs = false;
// state.ft_hs = true;
CourseModalRef.value.visibleOpen(null);
state.valueE1 = "";
state.teacher = "";
state.teacherName = "";
state.qdms_inputV1 = state.xzinputV1;
state.xzinputV1 = "";
console.log("qdms_inputV1", state.qdms_inputV1 );
getDictList("faceclassPic");
getTea();
}
if (state.bs_hs && state.valueE1 != "") {
if (state.bs_hs && state.valueE1 == 1) {
state.addOnlineCoursevisible = true;
}
};