From c9b83bc968bc53d775cbd147a412ab090473336d Mon Sep 17 00:00:00 2001 From: duhang <447647896@qq.com> Date: Mon, 8 Jan 2024 18:26:39 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=B9=B3=E5=8F=B0=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=BA=93-=E8=AF=95=E5=8D=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E3=80=81=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86-=E4=B8=80?= =?UTF-8?q?=E4=BA=BA=E4=B8=80=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/asyncRouter.js | 54 ++ src/components/table/index.vue | 4 + src/request/archives.js | 21 + src/request/platform_resource_library.js | 11 +- .../archives/user/components/personal.vue | 163 ++++++ src/views/archives/user/detail.vue | 500 ++++++++++++++++++ src/views/archives/user/index.vue | 147 +++++ src/views/archives/user/task_list.vue | 205 +++++++ .../courseware/data.vue | 4 +- .../courseware/video.vue | 4 +- .../curriculum/view.vue | 12 +- .../platform_resource_library/paper/list.vue | 135 +++++ .../platform_resource_library/paper/view.vue | 126 +++++ 13 files changed, 1374 insertions(+), 12 deletions(-) create mode 100644 src/request/archives.js create mode 100644 src/views/archives/user/components/personal.vue create mode 100644 src/views/archives/user/detail.vue create mode 100644 src/views/archives/user/index.vue create mode 100644 src/views/archives/user/task_list.vue create mode 100644 src/views/platform_resource_library/paper/list.vue create mode 100644 src/views/platform_resource_library/paper/view.vue diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index 0e4c9a7..aa72e03 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -183,6 +183,60 @@ export default [ }, ], }, + { + path: "/platform_resource_library/paper/list", + meta: { title: "试卷管理", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "platform_resource_library/paper/list", + }, + { + path: "/platform_resource_library/paper/view", + meta: { + title: "试卷详情查看", + activeMenu: "/platform_resource_library/paper/list", + }, + component: "platform_resource_library/paper/view", + }, + ], + }, + ], + }, + { + path: "/archives", + redirect: "/archives/user", + meta: { title: "档案管理", model: MODEL["2"] }, + component: "children", + children: [ + { + path: "/archives/user", + meta: { title: "一人一档", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "archives/user/index", + }, + { + path: "/archives/user/task_list", + meta: { + title: "任务详情", + activeMenu: "/archives/user", + }, + component: "archives/user/task_list", + }, + { + path: "/archives/user/detail", + meta: { + title: "任务详情", + activeMenu: "/archives/user", + }, + component: "archives/user/detail", + }, + ], + }, ], }, { diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 8abe143..4133715 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -13,6 +13,7 @@ :show-header="showHeader" :show-summary="showSummary" :summary-method="summaryMethod" + :span-method="spanMethod" @row-click="rowClick" @row-dblclick="rowDblclick" > @@ -93,6 +94,9 @@ const props = defineProps({ summaryMethod: { type: Function, }, + spanMethod: { + type: Function, + }, }); const emits = defineEmits([ "update:pagination", diff --git a/src/request/archives.js b/src/request/archives.js new file mode 100644 index 0000000..2f9244d --- /dev/null +++ b/src/request/archives.js @@ -0,0 +1,21 @@ +import { post } from "@/request/axios.js"; + +export const getUserList = (params) => post("/user/list", params); // 档案管理-一人一档-获取人员列表 + +export const getUserInfo = (params) => post("/user/goEditUser", params); // 档案管理-一人一档-获取人员详情 + +export const getTaskList = (params) => post("/studytask/userlist", params); // 档案管理-一人一档-获取任务详情列表 + +export const getStudyTaskInfo = (params) => post("/studytask/goEdit", params); // 档案管理-一人一档-档案详情-获取任务信息 + +export const getCurriculums = (params) => + post("/studytask/getAllCourseware", params); // 档案管理-一人一档-档案详情-获取课程列表 + +export const getArchivesPaper = (params) => + post("/studytask/getArchivesPaper", params); // 档案管理-一人一档-档案详情-获取试卷 + +export const getSignByStudyTask = (params) => + post("/studytasksign/getListByStudytaskID", params); // 档案管理-一人一档-档案详情-任务人员的签字信息 + +export const getUserExamScoreByStudyTaskId = (params) => + post("/stageexam/getUserExamScoreByStudystaskId", params); // 档案管理-一人一档-档案详情-??? diff --git a/src/request/platform_resource_library.js b/src/request/platform_resource_library.js index ef8c648..3429242 100644 --- a/src/request/platform_resource_library.js +++ b/src/request/platform_resource_library.js @@ -22,4 +22,13 @@ export const joinMyCurriculum = (params) => post("/platform/curriculum/joinMyCurriculum", params); // 课件资源管理-资料课件-添加 export const getCurriculumInfo = (params) => - post("platform/curriculum/goEdit", params); // 课件资源管理-获取课程详情信息 + post("/platform/curriculum/goEdit", params); // 课件资源管理-获取课程详情信息 + +export const getPaperList = (params) => + post("/platform/stageexampaperinput/list", params); // 试卷管理-获取课程列表 + +export const joinMyPaper = (params) => + post("/platform/stageexampaperinput/joinMyPaper", params); // 试卷管理-添加 + +export const getPaperInfo = (params) => + post("/platform/stageexampaperinput/goEdit", params); // 试卷管理-获取试卷详情信息 diff --git a/src/views/archives/user/components/personal.vue b/src/views/archives/user/components/personal.vue new file mode 100644 index 0000000..4684228 --- /dev/null +++ b/src/views/archives/user/components/personal.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/src/views/archives/user/detail.vue b/src/views/archives/user/detail.vue new file mode 100644 index 0000000..2e53e40 --- /dev/null +++ b/src/views/archives/user/detail.vue @@ -0,0 +1,500 @@ + + + + + diff --git a/src/views/archives/user/index.vue b/src/views/archives/user/index.vue new file mode 100644 index 0000000..a483dcc --- /dev/null +++ b/src/views/archives/user/index.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/views/archives/user/task_list.vue b/src/views/archives/user/task_list.vue new file mode 100644 index 0000000..02e2743 --- /dev/null +++ b/src/views/archives/user/task_list.vue @@ -0,0 +1,205 @@ + + + + + diff --git a/src/views/platform_resource_library/courseware/data.vue b/src/views/platform_resource_library/courseware/data.vue index 0b4cfd6..751e7e6 100644 --- a/src/views/platform_resource_library/courseware/data.vue +++ b/src/views/platform_resource_library/courseware/data.vue @@ -87,8 +87,10 @@ - +