From b2d75a5b86c4eb27d39c8e2f17919f2a40272a80 Mon Sep 17 00:00:00 2001 From: duhang <447647896@qq.com> Date: Fri, 5 Jan 2024 18:23:04 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=95=99=E8=82=B2=E5=9F=B9?= =?UTF-8?q?=E8=AE=AD-=E5=B9=B3=E5=8F=B0=E8=B5=84=E6=BA=90=E5=BA=93-?= =?UTF-8?q?=E8=AF=BE=E4=BB=B6=E8=B5=84=E6=BA=90=E7=AE=A1=E7=90=86(?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E3=80=81=E8=B5=84=E6=96=99)=E3=80=81?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/asyncRouter.js | 73 ++++++++ src/request/platform_resource_library.js | 25 +++ .../courseware/data.vue | 161 ++++++++++++++++ .../courseware/video.vue | 174 ++++++++++++++++++ .../courseware/view.vue | 125 +++++++++++++ .../curriculum/list.vue | 128 +++++++++++++ .../curriculum/view.vue | 125 +++++++++++++ 7 files changed, 811 insertions(+) create mode 100644 src/request/platform_resource_library.js create mode 100644 src/views/platform_resource_library/courseware/data.vue create mode 100644 src/views/platform_resource_library/courseware/video.vue create mode 100644 src/views/platform_resource_library/courseware/view.vue create mode 100644 src/views/platform_resource_library/curriculum/list.vue create mode 100644 src/views/platform_resource_library/curriculum/view.vue diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index 35f8687..26333e0 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -75,6 +75,79 @@ export default [ }, ], }, + { + path: "/platform_resource_library", + redirect: "/platform_resource_library/courseware", + meta: { title: "平台资源库", model: MODEL["2"] }, + component: "children", + children: [ + { + path: "/platform_resource_library/courseware", + redirect: "/platform_resource_library/courseware/video", + meta: { title: "课件资源管理" }, + component: "children", + children: [ + { + path: "/platform_resource_library/courseware/video", + meta: { title: "视频课件", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "platform_resource_library/courseware/video", + }, + { + path: "/platform_resource_library/courseware/view", + meta: { + title: "课件习题", + activeMenu: "/platform_resource_library/courseware/video", + }, + component: "platform_resource_library/courseware/view", + }, + ], + }, + { + path: "/platform_resource_library/courseware/data", + meta: { title: "资料课件", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "platform_resource_library/courseware/data", + }, + { + path: "/platform_resource_library/courseware/view", + meta: { + title: "课件习题", + activeMenu: "/platform_resource_library/courseware/data", + }, + component: "platform_resource_library/courseware/view", + }, + ], + }, + ], + }, + { + path: "/platform_resource_library/curriculum/list", + meta: { title: "课程管理", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "platform_resource_library/curriculum/list", + }, + { + path: "/platform_resource_library/curriculum/view", + meta: { + title: "课程详情查看", + activeMenu: "/platform_resource_library/curriculum/list", + }, + component: "platform_resource_library/curriculum/view", + }, + ], + }, + ], + }, { path: "/confined_space", redirect: "/confined_space/job_data", diff --git a/src/request/platform_resource_library.js b/src/request/platform_resource_library.js new file mode 100644 index 0000000..ef8c648 --- /dev/null +++ b/src/request/platform_resource_library.js @@ -0,0 +1,25 @@ +import { post } from "@/request/axios.js"; + +export const getVideoCoursewareList = (params) => + post("/platform/videocourseware/list", params); // 课件资源管理-视频课件列表 + +export const getDataCoursewareList = (params) => + post("/platform/datacourseware/list", params); // 课件资源管理-资料课件列表 + +export const joinMyVideoCourseware = (params) => + post("/platform/videocourseware/joinMyCourseware", params); // 课件资源管理-视频课件-添加 + +export const joinMyDataCourseware = (params) => + post("/platform/datacourseware/joinMyCourseware", params); // 课件资源管理-资料课件-添加 + +export const getQuestionListByCoursewareIdAndType = (params) => + post("/platform/question/list", params); // 课件资源管理-获取课件习题 + +export const getCurriculumList = (params) => + post("/platform/curriculum/list", params); // 课程管理-获取课程列表 + +export const joinMyCurriculum = (params) => + post("/platform/curriculum/joinMyCurriculum", params); // 课件资源管理-资料课件-添加 + +export const getCurriculumInfo = (params) => + post("platform/curriculum/goEdit", params); // 课件资源管理-获取课程详情信息 diff --git a/src/views/platform_resource_library/courseware/data.vue b/src/views/platform_resource_library/courseware/data.vue new file mode 100644 index 0000000..f8010e9 --- /dev/null +++ b/src/views/platform_resource_library/courseware/data.vue @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + 重置 + + + + + + + + + + + {{ serialNumber(pagination, $index) }} + + + + + + + 通用 + {{ row.train_type_name }} + + + + + + + + + 启用 + + + 禁用 + + + + + + + 添加 + + + 课件习题 + + + + + + + + + + + diff --git a/src/views/platform_resource_library/courseware/video.vue b/src/views/platform_resource_library/courseware/video.vue new file mode 100644 index 0000000..4bc1517 --- /dev/null +++ b/src/views/platform_resource_library/courseware/video.vue @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + 重置 + + + + + + + + + + + {{ serialNumber(pagination, $index) }} + + + + + + + 通用 + {{ row.train_type_name }} + + + + + + + + + 启用 + + + 禁用 + + + + + + + 商城 + + + 自传 + + + + + + + + 添加 + + + 课件习题 + + + + + + + + + + + diff --git a/src/views/platform_resource_library/courseware/view.vue b/src/views/platform_resource_library/courseware/view.vue new file mode 100644 index 0000000..737ccfb --- /dev/null +++ b/src/views/platform_resource_library/courseware/view.vue @@ -0,0 +1,125 @@ + + + + + + + + + + + + + 搜索 + + + + + + + + + + + {{ fnFormatterQuestionType(row) }} + + + + + + + 正确 + 错误 + + + {{ row.ANSWER }} + + + + + + + + + + + diff --git a/src/views/platform_resource_library/curriculum/list.vue b/src/views/platform_resource_library/curriculum/list.vue new file mode 100644 index 0000000..b92e0ff --- /dev/null +++ b/src/views/platform_resource_library/curriculum/list.vue @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + 搜索 + + 重置 + + + + + + + + + + + {{ serialNumber(pagination, $index) }} + + + + + + 通用 + {{ row.train_type_name }} + + + + + + + + + + 添加 + + + 查看 + + + + + + + + + + + diff --git a/src/views/platform_resource_library/curriculum/view.vue b/src/views/platform_resource_library/curriculum/view.vue new file mode 100644 index 0000000..1bc8be7 --- /dev/null +++ b/src/views/platform_resource_library/curriculum/view.vue @@ -0,0 +1,125 @@ + + + 课程信息 + + + {{ data.curriculumInfo.CURRICULUMNAME }} + + + {{ + data.curriculumInfo.CURRENCY === "1" + ? "通用" + : data.curriculumInfo.train_type_name + }} + + + {{ data.curriculumInfo.post_type_name }} + + + + + + {{ data.curriculumInfo.CURRICULUMINTRODUCE }} + + + + {{ data.NAME }} + 视频课件 + + + + + + + + + 资料课件 + + + + + + + + + + + + + + +