diff --git a/src/components/drawers/ProjectAudit.vue b/src/components/drawers/ProjectAudit.vue index 88654a0a..fb1a8d15 100644 --- a/src/components/drawers/ProjectAudit.vue +++ b/src/components/drawers/ProjectAudit.vue @@ -437,8 +437,7 @@ export default { }); }; const getDictList = async (param) => - api1 - .getDict({ + api1.getDict({ pageNo: 1, pageSize: 20, setCode: param, diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 45fdfd80..2332f1b7 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -4146,55 +4146,58 @@ export default defineComponent({ if (type === "1") { return; } - state.offcourseId = itm.offcourseId; + // console.log(itm) + state.offcourseId = itm.id; - // const item = await detail({ - // offcourseId: Number(state.offcourseId), - // }).then((res) => { - // if (res.data.code === 200) return res.data.data; - // }); + const item = await detail({ + offcourseId: Number(state.offcourseId), + }).then((res) => { + if (res.data.code === 200) return res.data.data; + }); - // state.statusJuJue = Number(item.auditStatus) === -1 ? 1 : 0; + - // if (Number(item.auditStatus) === 2 && Number(item.status) === 1) { - // state.statusTingQi = 1; - // } - // if (Number(item.auditStatus) === 2 && Number(item.status) === 0) { - // state.statusTingQi = 0; - // } + state.statusJuJue = Number(item.auditStatus) === -1 ? 1 : 0; - // state.qdms_inputV1 = item.name; - // // state.imageUrl = item.picUrl; - // state.feng_mian_1 = item.picUrl; - // state.qdms_inputV2 = item.targetUser; - // state.qdms_inputV3 = item.meaning; - // state.fen_lei = String(item.categoryId); - // state.chang_jin = String(item.sceneId); - // state.tags_val = item.tips ? item.tips.split(",") : []; - // //state.qdms_inputV5 = item.teacherId; - // state.teacher = item.teacher; - // state.teacherId = item.teacherId; - // state.qdms_inputV6 = item.intro; - // state.member = { value: item.teacherId, name: item.teacher }; - // if (item.attach == "") { - // state.imgList = []; - // } else { - // if (item.attach.indexOf(",")) { - // const arr = item.attach.split(","); - // arr.forEach((item) => { - // state.imgList.push({ img: item }); - // }); - // } else { - // state.imgList = [{ img: item.attach }]; - // } - // } + if (Number(item.auditStatus) === 2 && Number(item.status) === 1) { + state.statusTingQi = 1; + } + if (Number(item.auditStatus) === 2 && Number(item.status) === 0) { + state.statusTingQi = 0; + } - // valueHtml.value = item.outline; + state.qdms_inputV1 = item.name; + // state.imageUrl = item.picUrl; + state.feng_mian_1 = item.picUrl; + state.qdms_inputV2 = item.targetUser; + state.qdms_inputV3 = item.meaning; + state.fen_lei = String(item.categoryId); + state.chang_jin = String(item.sceneId); + state.tags_val = item.tips ? item.tips.split(",") : []; + //state.qdms_inputV5 = item.teacherId; + state.teacher = item.teacher; + state.teacherId = item.teacherId; + state.qdms_inputV6 = item.intro; + state.member = { value: item.teacherId, name: item.teacher }; + if (item.attach == "") { + state.imgList = []; + } else { + if (item.attach.indexOf(",")) { + const arr = item.attach.split(","); + arr.forEach((item) => { + state.imgList.push({ img: item }); + }); + } else { + state.imgList = [{ img: item.attach }]; + } + } + + valueHtml.value = item.outline; // state.ft_hs = true; CourseModalRef.value.visibleOpen(state.offcourseId, null); state.ft_eidt = true; - getTea(); + // getTea(); }; // handleTagChange @@ -4242,7 +4245,7 @@ export default defineComponent({ if (type === "1") { return; } - state.offcourseId = item.offcourseId; + state.offcourseId = item.id; state.delete_hs = true; state.del_hs = true; diff --git a/src/views/courselibrary/components/seeModal.vue b/src/views/courselibrary/components/seeModal.vue index d1d49b7c..c245233d 100644 --- a/src/views/courselibrary/components/seeModal.vue +++ b/src/views/courselibrary/components/seeModal.vue @@ -281,8 +281,7 @@