From d54f451122a9de49a0fd42ece13dcb89761e13df Mon Sep 17 00:00:00 2001 From: kclf <1195754634@qq.com> Date: Wed, 7 Dec 2022 23:56:59 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=B8=A6=E5=AF=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E7=9A=84=E5=BC=B9=E7=AA=97=E6=8A=BD=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 586 +- .../courselibrary/CoursewareManage_Old.vue | 8356 +++++++++++++++++ src/views/courselibrary/courseModal.vue | 7982 +--------------- 3 files changed, 8848 insertions(+), 8076 deletions(-) create mode 100644 src/views/courselibrary/CoursewareManage_Old.vue 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 @@ - + From 059d3ece978ab0afbbb67f42630cd596a7bae056 Mon Sep 17 00:00:00 2001 From: kclf <1195754634@qq.com> Date: Thu, 8 Dec 2022 00:12:06 +0800 Subject: [PATCH 2/8] t --- src/views/courselibrary/courseModal.vue | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/views/courselibrary/courseModal.vue b/src/views/courselibrary/courseModal.vue index fe421ef3..cfb823ba 100644 --- a/src/views/courselibrary/courseModal.vue +++ b/src/views/courselibrary/courseModal.vue @@ -423,12 +423,6 @@ export default defineComponent({ Toolbar, ProjectManager, }, - props: { - visible: { - type: Boolean, - default: false, - }, - }, setup(props, { expose, emit }) { const state = reactive({ hideshow: true, From 20bc4096aec990a11a155b2b69f1ace0c4ae995d Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 8 Dec 2022 00:37:16 +0800 Subject: [PATCH 3/8] =?UTF-8?q?--=20=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/BaseUpload.vue | 85 + src/components/common/FJUpload.vue | 202 ++ src/components/common/Upload.vue | 9 - src/views/courselibrary/CoursewareManage.vue | 2203 +++++++----------- 4 files changed, 1094 insertions(+), 1405 deletions(-) create mode 100644 src/components/common/BaseUpload.vue create mode 100644 src/components/common/FJUpload.vue delete mode 100644 src/components/common/Upload.vue diff --git a/src/components/common/BaseUpload.vue b/src/components/common/BaseUpload.vue new file mode 100644 index 00000000..3920b81e --- /dev/null +++ b/src/components/common/BaseUpload.vue @@ -0,0 +1,85 @@ + + diff --git a/src/components/common/FJUpload.vue b/src/components/common/FJUpload.vue new file mode 100644 index 00000000..0e77f9b3 --- /dev/null +++ b/src/components/common/FJUpload.vue @@ -0,0 +1,202 @@ + + + \ No newline at end of file diff --git a/src/components/common/Upload.vue b/src/components/common/Upload.vue deleted file mode 100644 index 93d8e718..00000000 --- a/src/components/common/Upload.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index f6cb0dd5..3ada00a8 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -7,60 +7,60 @@
@@ -88,16 +88,16 @@
@@ -111,18 +111,18 @@
课程名称:
{{ xzinputV1.length }}/20 @@ -136,8 +136,8 @@
@@ -145,15 +145,15 @@
@@ -161,8 +161,8 @@
@@ -170,14 +170,14 @@
- 1、课程名称统一不加书名号。
+ 1、课程名称统一不加书名号。
2、项目名称、属地等信息如需体现在课程名称中,请放在课程名称信息 之后,如“时间管理(GROW180项目)”或“时间管理(B*)”确保首先 - 看到的是课程内容主题。
+ 看到的是课程内容主题。
3、同一课程如先后有多个版本,原则上仅开放最新版本,旧版本应停用 版本如必须以年份标明,请以“沟通技巧(2022年)”的方式呈现。
@@ -187,8 +187,8 @@
授课形式 @@ -198,9 +198,9 @@
线上 @@ -209,9 +209,9 @@
面授 @@ -225,8 +225,8 @@
是否设置目录 @@ -235,18 +235,18 @@
@@ -270,29 +270,29 @@
编辑面授课 新建面授课
@@ -311,8 +311,8 @@
课程名称 @@ -320,10 +320,10 @@
@@ -339,19 +339,19 @@ 课程命名规则
收起
展开
@@ -359,14 +359,14 @@
- 1、课程名称统一不加书名号。
+ 1、课程名称统一不加书名号。
2、项目名称、属地等信息如需体现在课程名称中,请放在课程名称信息 之后,如“时间管理(GROW180项目)”或“时间管理(B*)”确保首先 - 看到的是课程内容主题。
+ 看到的是课程内容主题。
3、同一课程如先后有多个版本,原则上仅开放最新版本,旧版本应停用 版本如必须以年份标明,请以“沟通技巧(2022年)”的方式呈现。
@@ -376,32 +376,32 @@
封面图
{ return triggerNode.parentNode || document.body; } " - v-model:value="feng_mian_1" - dropdownClassName="dropdown-style" - style="width: 440px" - placeholder="请选择" - :options="optionsUrl" - allowClear - showSearch + v-model:value="feng_mian_1" + dropdownClassName="dropdown-style" + style="width: 440px" + placeholder="请选择" + :options="optionsUrl" + allowClear + showSearch > avatar
{{ item }} @@ -570,8 +570,8 @@
asterisk
@@ -580,8 +580,8 @@
@@ -593,10 +593,10 @@
@@ -606,82 +606,12 @@
-
+
- 附件 + 附件
- -
-
- enclosure -
- 添加附件 -
-
- - 支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip - -
-
-
-
-
-
- - - -
-
-
-
上传完成
- - -
-
- 100% -
-
- -
-
-
- - 删除 - -
- - -
+
@@ -693,17 +623,17 @@
@@ -717,9 +647,9 @@
提交审核
@@ -729,465 +659,35 @@
- -
-
- - 查看面授课 -
-
- -
-
-
-
-
-
课程信息
-
-
-
-
-
- -
- 课程名称 -
-
-
- -
- - {{ 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 - -
-
-
-
-
-
-
- -
- 内容分类 -
-
-
- -
-
-
-
-
- 场景 -
-
-
- -
-
-
-
-
- 内容标签 -
-
- -
-
-
-
-
-
-
- asterisk -
- 授课教师 -
-
-
- -
-
-
-
-
- 课程简介 -
-
-
- -
- - {{ qdms_inputV6.length }}/150 - -
-
-
-
-
-
- 附件 -
-
- -
-
- enclosure -
- 添加附件 -
-
- - 支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip - -
-
-
-
-
-
- - - -
-
-
-
上传完成
- - -
-
- 100% -
-
- -
-
-
- - 删除 - -
- - -
-
-
-
-
- -
- -
-
-
-
-