多题干bug修复

This commit is contained in:
kclf
2022-12-05 16:27:51 +08:00
parent 437ba6e7f4
commit d45635ace1
5 changed files with 1074 additions and 141 deletions

View File

@@ -1319,8 +1319,9 @@
handleLook(record, String(record.courseform));
}
"
>查看</a
>
查看
</a>
<a
@click="
() => {
@@ -2922,6 +2923,8 @@
</div>
</div>
</a-modal>
<!-- 预览弹窗 -->
<!-- <SeeModal :show="lookCourseModal" /> -->
<!--删除 复制 停用弹窗 -->
<!-- 学员管理课程库-归属权抽屉 -->
<!-- <own-power v-model:ownpowervisible="ownpowervisible" /> -->
@@ -3032,9 +3035,10 @@ import * as api1 from "../../api/index1";
import "@wangeditor/editor/dist/css/style.css";
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
// import { DomEditor } from "@wangeditor/editor";
import ProjectManager from "@/components/project/ProjectManager";
// import SeeModal from "./components/seeModal.vue";
//列表表格
const columns1 = [
{
@@ -3662,6 +3666,9 @@ export default defineComponent({
ownpowervisible: false,
corpowerlistvisible: false,
lookCourseModal: false,
faceDetailObj: null,
offcourseId: null,
projectName: "",
name: "",
@@ -5062,8 +5069,25 @@ export default defineComponent({
state.ft_eidt = true;
};
// 预览弹框 开启和关闭
// 内容分类 场景 -- 目前直接写死的
const sceneist11 = [
{ dictCode: "6", dictValue: "场景一" },
{ dictCode: "7", dictValue: "场景二" },
];
const contentList11 = [
{ dictCode: "8", dictValue: "分类一" },
{ dictCode: "5", dictValue: "分类二" },
];
// const heroImg = ref(null);
// // const valueHtmlRef = ref(null);
// const attachMap = ref([]);
const ft_exit_see = () => {
state.lookCourseModal = false;
};
const handleLook = async (itm, type) => {
state.isEdit = 0;
state.lookCourseModal = true;
// state.isEdit = 0;
console.log(45555);
console.log(itm);
if (type === "1") {
@@ -5076,40 +5100,42 @@ export default defineComponent({
}).then((res) => {
if (res.data.code === 200) return res.data.data;
});
console.log("res");
state.faceDetailObj = item;
// heroImg.value.src = item.picUrl;
// valueHtmlRef.value = item.outline;
// attachMap.value = item.attach == "" ? [] : item.attach.split(",");
console.log("res222222222");
console.log(item);
console.log(options2.value);
console.log(options3.value);
state.qdms_inputV1 = item.name;
state.imageUrl = 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 };
// state.qdms_inputV1 = item.name;
// state.imageUrl = 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 (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;
// valueHtml.value = item.outline;
state.lookMs = true;
// state.lookMs = true;
};
// const handleTea = async () => {
// console.log("item22224444");
@@ -5480,6 +5506,9 @@ export default defineComponent({
ckxq_hs,
ftsr_exit,
stm_exit,
ft_exit_see,
contentList11,
sceneist11,
createkk,
handleCancelStu,
handleSureStu,