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