面授课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;
}
};

View File

@@ -31,7 +31,7 @@
<!-- 审核理由 -->
<div v-if="statusJuJue" class="statusJuJue">
<span>审核意见</span>
<span>-</span>
<span>{{auditDescription}}</span>
</div>
<div class="faceteach" :style="{ display: ft_hs ? 'block' : 'none' }">
<div class="ft_main">
@@ -372,7 +372,7 @@ import {Editor, Toolbar} from "@wangeditor/editor-for-vue";
import ProjectManager from "@/components/project/ProjectManagerNew";
import FJUpload from "@/components/common/FJUpload";
import * as moment from "moment";
import * as api2 from "../../api/indexAudit"
export default defineComponent({
components: {
Editor,
@@ -401,6 +401,7 @@ export default defineComponent({
tags_val: [],
qdms_inputV6: "",
imgList: [],
auditDescription:"",
});
const visibleOpen = (offcourseId) => {
@@ -639,6 +640,19 @@ export default defineComponent({
if (Number(item.auditStatus) === 2 && Number(item.status) === 0) {
state.statusTingQi = 0;
}
if(Number(item.auditStatus) === -1 ){
let obj ={
offcourseId:offcourseId,
type:2,
pageNo: 1,
pageSize: 1,
}
api2.auditList(obj).then((res)=>{
state.auditDescription = res.data.data.rows[0].description;
console.log("state.auditDescription",state.auditDescription);
})
}
state.qdms_inputV1 = item.name;
state.feng_mian_1 = item.picUrl;