From 6db2c2cb032d9ac9fe206f77792672394c9216aa Mon Sep 17 00:00:00 2001 From: z Date: Mon, 22 Jan 2024 15:55:37 +0800 Subject: [PATCH] init --- src/assets/css/element.scss | 4 + src/assets/js/asyncRouter.js | 79 ++++ src/request/online_learn_exam.js | 15 + src/views/online_learn_exam/task/add.vue | 371 ++++++++++++++++++ .../task/components/curriculum.vue | 118 ++++++ .../task/components/examination.vue | 190 +++++++++ .../task/components/user.vue | 139 +++++++ .../online_learn_exam/task/exam_details.vue | 85 ++++ .../task/exam_paper_details.vue | 122 ++++++ src/views/online_learn_exam/task/index.vue | 216 ++++++++++ .../task/learning_details.vue | 52 +++ .../task/student_details.vue | 108 +++++ src/views/online_learn_exam/task/view.vue | 230 +++++++++++ 13 files changed, 1729 insertions(+) create mode 100644 src/views/online_learn_exam/task/add.vue create mode 100644 src/views/online_learn_exam/task/components/curriculum.vue create mode 100644 src/views/online_learn_exam/task/components/examination.vue create mode 100644 src/views/online_learn_exam/task/components/user.vue create mode 100644 src/views/online_learn_exam/task/exam_details.vue create mode 100644 src/views/online_learn_exam/task/exam_paper_details.vue create mode 100644 src/views/online_learn_exam/task/index.vue create mode 100644 src/views/online_learn_exam/task/learning_details.vue create mode 100644 src/views/online_learn_exam/task/student_details.vue create mode 100644 src/views/online_learn_exam/task/view.vue diff --git a/src/assets/css/element.scss b/src/assets/css/element.scss index fe9346d..1c1b9bb 100644 --- a/src/assets/css/element.scss +++ b/src/assets/css/element.scss @@ -122,6 +122,10 @@ width: 100% !important; } +.el-textarea.is-disabled .el-textarea__inner { + --el-disabled-border-color: var(--el-border-color); +} + .el-table { --el-table-bg-color: #071a43 !important; --el-bg-color: #071a43 !important; diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index 1aa9370..f8fd98e 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -1001,6 +1001,85 @@ export default [ }, ], }, + { + path: "/online_learn_exam/task", + meta: { title: "任务管理", isSubMenu: false }, + component: "children", + children: [ + { + path: "/online_learn_exam/task", + component: "online_learn_exam/task/index", + }, + { + path: "/online_learn_exam/task/view", + meta: { + title: "查看", + activeMenu: "/online_learn_exam/task", + }, + component: "online_learn_exam/task/view", + }, + { + path: "/online_learn_exam/task/update", + meta: { + title: "修改", + activeMenu: "/online_learn_exam/task", + }, + component: "online_learn_exam/task/view", + }, + { + path: "/online_learn_exam/task/add", + meta: { + title: "新增", + activeMenu: "/online_learn_exam/task", + }, + component: "online_learn_exam/task/add", + }, + { + path: "/online_learn_exam/task/student_details", + meta: { + title: "学员详情", + activeMenu: "/online_learn_exam/task", + }, + component: "children", + children: [ + { + path: "", + component: "online_learn_exam/task/student_details", + }, + { + path: "/online_learn_exam/task/student_details/learning_details", + meta: { + title: "学习详情", + activeMenu: "/online_learn_exam/task", + }, + component: "online_learn_exam/task/learning_details", + }, + ], + }, + { + path: "/online_learn_exam/task/exam_details", + meta: { + title: "考试详情", + activeMenu: "/online_learn_exam/task", + }, + component: "children", + children: [ + { + path: "", + component: "online_learn_exam/task/exam_details", + }, + { + path: "/online_learn_exam/task/exam_details/exam_paper_details", + meta: { + title: "考卷详情", + activeMenu: "/online_learn_exam/task", + }, + component: "online_learn_exam/task/exam_paper_details", + }, + ], + }, + ], + }, ], }, { diff --git a/src/request/online_learn_exam.js b/src/request/online_learn_exam.js index a29d161..e6995d1 100644 --- a/src/request/online_learn_exam.js +++ b/src/request/online_learn_exam.js @@ -53,3 +53,18 @@ export const getPaperQuestionsNumber = (params) => export const setPaperAdd = (params) => post("/stageexampaperinput/add", params); // 试卷管理添加 export const getPaperQuestionsList = (params) => post("/question/getQuestionList", params); // 试卷管理可选题列表 +export const getTaskList = (params) => post("/studytask/list", params); // 任务管理列表 +export const getTaskViewInfo = (params) => post("/studytask/goEdit", params); // 任务管理查看 +export const getTaskViewUserList = (params) => + post("/stagestudentrelation/listAllByStudyTaskId", params); // 任务管理查看人员 +export const getTaskViewExaminationList = (params) => + post("/stageexampaper/getPageDataByStudyTaskId", params); // 任务管理查看考试 +export const setTaskAdd = (params) => post("/studytask/add", params); // 任务管理添加 +export const setTaskUpdate = (params) => + post("/studytask/updateEndTimeAndUser", params); // 任务管理修改 +export const getTaskLearningDetailsList = (params) => + post("/studytask/getAllByuserInfo", params); // 任务管理学习详情 +export const getTaskExamDetailsList = (params) => + post("/stagestudentrelation/list", params); // 任务管理考试详情列表 +export const getTaskExamPaperDetails = (params) => + post("/stageexam/findResult", params); // 任务管理考卷详情查看 diff --git a/src/views/online_learn_exam/task/add.vue b/src/views/online_learn_exam/task/add.vue new file mode 100644 index 0000000..ef2687f --- /dev/null +++ b/src/views/online_learn_exam/task/add.vue @@ -0,0 +1,371 @@ + + + + + diff --git a/src/views/online_learn_exam/task/components/curriculum.vue b/src/views/online_learn_exam/task/components/curriculum.vue new file mode 100644 index 0000000..8154d6e --- /dev/null +++ b/src/views/online_learn_exam/task/components/curriculum.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/src/views/online_learn_exam/task/components/examination.vue b/src/views/online_learn_exam/task/components/examination.vue new file mode 100644 index 0000000..e3aff7a --- /dev/null +++ b/src/views/online_learn_exam/task/components/examination.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/src/views/online_learn_exam/task/components/user.vue b/src/views/online_learn_exam/task/components/user.vue new file mode 100644 index 0000000..1964289 --- /dev/null +++ b/src/views/online_learn_exam/task/components/user.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/src/views/online_learn_exam/task/exam_details.vue b/src/views/online_learn_exam/task/exam_details.vue new file mode 100644 index 0000000..b878f92 --- /dev/null +++ b/src/views/online_learn_exam/task/exam_details.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/views/online_learn_exam/task/exam_paper_details.vue b/src/views/online_learn_exam/task/exam_paper_details.vue new file mode 100644 index 0000000..d956261 --- /dev/null +++ b/src/views/online_learn_exam/task/exam_paper_details.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/online_learn_exam/task/index.vue b/src/views/online_learn_exam/task/index.vue new file mode 100644 index 0000000..9d82871 --- /dev/null +++ b/src/views/online_learn_exam/task/index.vue @@ -0,0 +1,216 @@ + + + + + diff --git a/src/views/online_learn_exam/task/learning_details.vue b/src/views/online_learn_exam/task/learning_details.vue new file mode 100644 index 0000000..edb2592 --- /dev/null +++ b/src/views/online_learn_exam/task/learning_details.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/src/views/online_learn_exam/task/student_details.vue b/src/views/online_learn_exam/task/student_details.vue new file mode 100644 index 0000000..0edd7e0 --- /dev/null +++ b/src/views/online_learn_exam/task/student_details.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/src/views/online_learn_exam/task/view.vue b/src/views/online_learn_exam/task/view.vue new file mode 100644 index 0000000..144c93e --- /dev/null +++ b/src/views/online_learn_exam/task/view.vue @@ -0,0 +1,230 @@ + + + + +