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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + +