diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 3ed260b3..df564c41 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -269,465 +269,10 @@ - -
-
- - 编辑面授课 - 新建面授课 -
-
- -
-
-
- -
- 审核意见: - {{auditDescription}} -
-
-
-
课程信息
-
-
-
-
-
- -
- 课程名称 -
-
-
- -
- - {{ qdms_inputV1.length }}/90 - -
-
-
-
-
-
-
- 课程命名规则 -
-
-
- 收起 -
-
- 展开 -
-
-
-
-
- - 1、课程名称统一不加书名号。
- 2、项目名称、属地等信息如需体现在课程名称中,请放在课程名称信息 - 之后,如“时间管理(GROW180项目)”或“时间管理(B*)”确保首先 - 看到的是课程内容主题。
- 3、同一课程如先后有多个版本,原则上仅开放最新版本,旧版本应停用 - 版本如必须以年份标明,请以“沟通技巧(2022年)”的方式呈现。 -
-
-
-
-
-
- -
- 封面图 -
-
- - avatar - -
- - 高宽比为16:9 (如:800*450) png或jpg图片 - -
-
-
-
-
-
- -
- 目标人群 -
-
-
- -
- - {{ qdms_inputV2.length }}/50 - -
-
-
-
-
-
- 课程价值 -
-
-
- -
- - {{ qdms_inputV3.length }}/200 - -
-
-
-
-
-
-
- -
- 内容分类 -
-
-
- -
-
-
-
-
- 场景 -
-
-
- -
-
-
-
-
- 内容标签 -
-
- - -
- - {{ item }} - -
-
-
-
-
-
-
-
- asterisk -
- - 授课教师 -
-
-
- -
-
-
-
-
- 课程简介 -
-
-
- -
- - {{ qdms_inputV6.length }}/150 - -
-
-
-
-
-
- 附件 -
-
- -
-
- enclosure -
- 添加附件 -
-
- - 支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip - -
-
-
-
-
-
- - - -
-
-
-
上传完成
- - -
-
- 100% -
-
- -
-
-
- - 删除 - -
- - -
-
-
-
-
- -
-
-
取消
-
-
-
保存
-
- -
-
提交审核
-
-
-
-
-
-
+ 取消
-
确定
+
确定
@@ -3137,6 +2682,7 @@ import { Editor, Toolbar } from "@wangeditor/editor-for-vue"; import ProjectManager from "@/components/project/ProjectManagerNew"; import SeeModal from "./components/seeModal.vue"; +import CourseModal from "./courseModal.vue"; import * as moment from "moment"; //列表表格 @@ -3643,6 +3189,7 @@ export default defineComponent({ Editor, Toolbar, SeeModal, + CourseModal, // StuAdd, ProjectManager, ProjOwnerShip, @@ -3655,6 +3202,8 @@ export default defineComponent({ addOnlineCourse, }, setup() { + const CourseModalRef = ref(null); + const state = reactive({ shipType: 1, addLoading: false, @@ -3662,7 +3211,7 @@ export default defineComponent({ teacherId: null, teacher: null, selectedRowKeys7: [], - auditDescription:"", + auditDescription: "", isEdit: 0, member: { name: "", value: "" }, //列表表格 @@ -4640,7 +4189,9 @@ export default defineComponent({ const createft = () => { if (state.bs_hs == false && state.valueE1 != "") { state.of_hs = false; - state.ft_hs = true; + // state.ft_hs = true; + CourseModalRef.value.visibleOpen(null); + state.valueE1 = ""; state.teacher = ""; state.teacherName = ""; @@ -4663,12 +4214,13 @@ export default defineComponent({ return count ? false : true; }; const ft_exit_0 = () => { - state.ft_hs = false; - + // state.ft_hs = false; + CourseModalRef.value.visibleClose(); }; const ft_exit_1 = () => { - state.ft_hs = false; - router.go(0); + // state.ft_hs = false; + CourseModalRef.value.visibleClose(); + // router.go(0); }; const ft_exit = () => { state.ft_eidt = false; @@ -5279,16 +4831,16 @@ export default defineComponent({ }; //编辑面授课 const handleEdit = async (itm, type) => { - // auditDescription - let obj={ - offcourseId:itm.offcourseId, - pageNo:1, - pageSize:1, - type:2 - } - api2.auditList(obj).then((res)=>{ - state.auditDescription =res.data.data.rows[0].description; - }) + // auditDescription + let obj = { + offcourseId: itm.offcourseId, + pageNo: 1, + pageSize: 1, + type: 2, + }; + api2.auditList(obj).then((res) => { + state.auditDescription = res.data.data.rows[0].description; + }); console.log(45555); console.log(itm); @@ -5297,50 +4849,51 @@ export default defineComponent({ } state.offcourseId = itm.offcourseId; - 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; + // 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; - } + // 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.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 }]; - } - } + // 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; + // valueHtml.value = item.outline; - state.ft_hs = true; + // state.ft_hs = true; + CourseModalRef.value.visibleOpen(state.offcourseId); state.ft_eidt = true; getTea(); }; @@ -5701,8 +5254,11 @@ export default defineComponent({ console.log("执行"); getTableDate(); }; + return { ...toRefs(state), + CourseModalRef, + getdateToDateFn, moment, getdateToTimeFn, diff --git a/src/views/courselibrary/CoursewareManage_Old.vue b/src/views/courselibrary/CoursewareManage_Old.vue new file mode 100644 index 00000000..a479c981 --- /dev/null +++ b/src/views/courselibrary/CoursewareManage_Old.vue @@ -0,0 +1,8356 @@ + + + + diff --git a/src/views/courselibrary/courseModal.vue b/src/views/courselibrary/courseModal.vue index f6cb0dd5..fe421ef3 100644 --- a/src/views/courselibrary/courseModal.vue +++ b/src/views/courselibrary/courseModal.vue @@ -1,3085 +1,402 @@ - +