From f6e8a668572b28c83208e63aefe775f35dd7070f Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Thu, 21 Mar 2024 16:21:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E7=AE=A1=E7=90=86/=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/training_process_management.js | 13 + .../automatically_generate_test_papers.vue | 211 ++++++++++++++++ .../components/configuration_test_paper.vue | 22 +- .../class_management/components/delay.vue | 2 +- .../components/involved_in_training.vue | 2 +- .../components/modify_exam_times.vue | 2 +- .../components/platform_test_paper.vue | 230 ++++++++++++++++++ .../class_management/components/student.vue | 83 ++----- .../components/test_paper_type.vue | 142 ++++++++++- 9 files changed, 631 insertions(+), 76 deletions(-) create mode 100644 src/views/training_process_management/class_management/components/automatically_generate_test_papers.vue create mode 100644 src/views/training_process_management/class_management/components/platform_test_paper.vue diff --git a/src/request/training_process_management.js b/src/request/training_process_management.js index 175eab7..c13c92e 100644 --- a/src/request/training_process_management.js +++ b/src/request/training_process_management.js @@ -64,3 +64,16 @@ export const setClassManagementInvolvedInTrainingAdd = (params) => post("/curriculumpost/saveClassCurPost", params); // 班级管理涉及培训岗位保存 export const getClassManagementExamPaperList = (params) => post("/classpost/listClassPost", params); // 班级管理试卷列表 +export const setClassManagementExamPaperEffectEvaluationIsRelatedCourseware = ( + params +) => post("/postpaper/verifyStrengthenPaper", params); // 班级管理试卷效果评估时是否关联课件 +export const setClassManagementExamPaperAdd = (params) => + post("/postpaper/addPostPaper", params); // 班级管理试卷添加 +export const setClassManagementExamPaperEdit = (params) => + post("/postpaper/editPostPaper", params); // 班级管理试卷修改 +export const getClassManagementExamPaperCount = (params) => + post("/postpaper/getQuestionCount", params); // 班级管理试卷数量 +export const getClassManagementExamPaperHasTestPaper = (params) => + post("/postpaper/getData", params); // 班级管理试卷获取是否有试卷 +export const setClassManagementExamPaperBatchAdd = (params) => + post("/postpaper/batchAddPostPaper", params); // 班级管理试卷批量添加自动生成试卷 diff --git a/src/views/training_process_management/class_management/components/automatically_generate_test_papers.vue b/src/views/training_process_management/class_management/components/automatically_generate_test_papers.vue new file mode 100644 index 0000000..2ee18db --- /dev/null +++ b/src/views/training_process_management/class_management/components/automatically_generate_test_papers.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/src/views/training_process_management/class_management/components/configuration_test_paper.vue b/src/views/training_process_management/class_management/components/configuration_test_paper.vue index 62087cc..2adbfbd 100644 --- a/src/views/training_process_management/class_management/components/configuration_test_paper.vue +++ b/src/views/training_process_management/class_management/components/configuration_test_paper.vue @@ -59,7 +59,7 @@ @@ -92,6 +94,7 @@ import { import { reactive, watchEffect } from "vue"; import ExamPaperDetails from "./exam_paper_details.vue"; import TestPaperType from "./test_paper_type.vue"; +import { ElMessage } from "element-plus"; const route = useRoute(); const { CLASS_ID } = route.query; @@ -120,6 +123,7 @@ const data = reactive({ CLASSPOST_ID: "", POSTPAPER_ID: "", CURRICULUM_IDS: "", + batchData: [], }, }); watchEffect(() => { @@ -141,6 +145,22 @@ const fnTestPaperType = (type, CLASSPOST_ID, POSTPAPER_ID, CURRICULUM_IDS) => { data.testPaperTypeDialog.CLASSPOST_ID = CLASSPOST_ID; data.testPaperTypeDialog.POSTPAPER_ID = POSTPAPER_ID; data.testPaperTypeDialog.CURRICULUM_IDS = CURRICULUM_IDS; + data.testPaperTypeDialog.batchData = []; + data.testPaperTypeDialog.visible = true; +}; +const fnBatch = () => { + const selectionData = tableRef.value.getSelectionRows(); + if (selectionData.length === 0) { + ElMessage.warning("请选择要添加的项"); + return; + } + data.testPaperTypeDialog.CLASSPOST_ID = selectionData + .map((item) => item.CLASSPOST_ID) + .join(";"); + data.testPaperTypeDialog.batchData = [...selectionData]; + data.testPaperTypeDialog.type = "batchAdd"; + data.testPaperTypeDialog.POSTPAPER_ID = ""; + data.testPaperTypeDialog.CURRICULUM_IDS = ""; data.testPaperTypeDialog.visible = true; }; diff --git a/src/views/training_process_management/class_management/components/delay.vue b/src/views/training_process_management/class_management/components/delay.vue index 3d2fd34..9c1d330 100644 --- a/src/views/training_process_management/class_management/components/delay.vue +++ b/src/views/training_process_management/class_management/components/delay.vue @@ -1,5 +1,5 @@