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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 单选题数
+
+ (可选题数:{{ form.OPTIONALDANYUANTICOUNT }})
+
+
+
+
+
+
+
+
+
+ 多选题数
+
+ (可选题数:{{ form.OPTIONALDUOXUANTICOUNT }})
+
+
+
+
+
+
+
+
+
+ 判断题数
+
+ (可选题数:{{ form.OPTIONALPANDUITICOUNT }})
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+ 确定
+
+
+
+
+
+
+
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 @@
- 批量添加试卷
+ 批量添加试卷
@@ -76,6 +76,8 @@
:class-post-id="data.testPaperTypeDialog.CLASSPOST_ID"
:post-paper-id="data.testPaperTypeDialog.POSTPAPER_ID"
:curriculum-ids="data.testPaperTypeDialog.CURRICULUM_IDS"
+ :batch-data="data.testPaperTypeDialog.batchData"
+ @get-data="fnResetPagination"
/>
@@ -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 @@
-
+
-
+
diff --git a/src/views/training_process_management/class_management/components/modify_exam_times.vue b/src/views/training_process_management/class_management/components/modify_exam_times.vue
index 14eed98..09443c1 100644
--- a/src/views/training_process_management/class_management/components/modify_exam_times.vue
+++ b/src/views/training_process_management/class_management/components/modify_exam_times.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/views/training_process_management/class_management/components/platform_test_paper.vue b/src/views/training_process_management/class_management/components/platform_test_paper.vue
new file mode 100644
index 0000000..48dc4c9
--- /dev/null
+++ b/src/views/training_process_management/class_management/components/platform_test_paper.vue
@@ -0,0 +1,230 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+ 重置
+
+
+
+
+
+
+
+
+ {{ serialNumber(pagination, $index) }}
+
+
+
+
+
+
+ 预览
+
+
+ 使用
+
+
+
+
+
+
+ 考试设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+ 确定
+
+
+
+
+
+
+
+
diff --git a/src/views/training_process_management/class_management/components/student.vue b/src/views/training_process_management/class_management/components/student.vue
index 751aeae..d8bf7a3 100644
--- a/src/views/training_process_management/class_management/components/student.vue
+++ b/src/views/training_process_management/class_management/components/student.vue
@@ -202,13 +202,11 @@ import { reactive } from "vue";
import { translationStatus } from "@/assets/js/utils.js";
import useListData from "@/assets/js/useListData.js";
import {
- getClassManagementExportLearningRecords,
getClassManagementStudentList,
setClassManagementStudentDelete,
} from "@/request/training_process_management.js";
import { useRoute, useRouter } from "vue-router";
import { ElMessage, ElMessageBox } from "element-plus";
-import * as XLSX from "xlsx";
import { debounce } from "throttle-debounce";
import AddStudent from "./add_student.vue";
@@ -274,71 +272,22 @@ const fnGetLearningRecords = async () => {
await ElMessageBox.confirm("确定要导出查询出来所有的学习记录?", {
type: "warning",
});
- const resData = await getClassManagementExportLearningRecords({
- CLASS_ID,
- ...searchForm.value,
- START_TIME: searchForm.value.TIME?.[0],
- END_TIME: searchForm.value.TIME?.[1],
- });
- if (resData.varList.length > 0) fnExportLearningRecords(resData.varList);
- else ElMessage.warning("没有学习记录");
-};
-const fnExportLearningRecords = (list) => {
- const tableData = [
- [
- "序号",
- "身份证",
- "姓名",
- "性别",
- "手机号",
- "部门",
- "岗位",
- "要求总学时",
- "已完成学时",
- "是否考试通过",
- "考试分数",
- "学习状态",
- "班级名称",
- ],
- ];
- list.forEach((item, index) => {
- for (let i = 0; i < learningStatus.length; i++) {
- if (learningStatus[i].ID === item.STUDYSTATE) {
- item.STUDYSTATE = learningStatus[i].NAME;
- break;
- }
- }
- for (let i = 0; i < examStatus.length; i++) {
- if (learningStatus[i].ID === item.STAGEEXAMSTATE) {
- item.STAGEEXAMSTATE = learningStatus[i].NAME;
- break;
- }
- }
- if (item.ALL_CLASSHOUR === "0.0") item.ALL_CLASSHOUR = "0";
- const COMPLETE_CLASSHOUR =
- item.COMPLETE_CLASSHOUR === "0.0"
- ? 0
- : parseFloat(item.COMPLETE_CLASSHOUR).toFixed(1);
- tableData.push([
- index + 1,
- item.USER_ID_CARD,
- item.NAME,
- item.SEX,
- item.PHONE,
- item.DEPARTMENT_NAME,
- item.POST_NAME,
- item.ALL_CLASSHOUR,
- COMPLETE_CLASSHOUR,
- item.STAGEEXAMSTATE,
- item.EXAMSCORE,
- item.STUDYSTATE,
- item.CLASS_NAME,
- ]);
- });
- const ws = XLSX.utils.aoa_to_sheet(tableData);
- const wb = XLSX.utils.book_new();
- XLSX.utils.book_append_sheet(wb, ws, "学员统计");
- XLSX.writeFile(wb, "学员统计表.xlsx");
+ window.location.href =
+ import.meta.env[import.meta.env.DEV ? "VITE_PROXY" : "VITE_BASE_URL"] +
+ "/student/exportStudentInfo?CLASS_ID=" +
+ CLASS_ID +
+ "&START_TIME=" +
+ searchForm.value.TIME?.[0] +
+ "&END_TIME=" +
+ searchForm.value.TIME?.[1] +
+ "&DEPARTMENT_ID=" +
+ searchForm.value.DEPARTMENT_ID +
+ "&POST_ID=" +
+ searchForm.value.POST_ID +
+ "&STUDYSTATE=" +
+ searchForm.value.STUDYSTATE +
+ "&STAGEEXAMSTATE=" +
+ searchForm.value.STAGEEXAMSTATE;
ElMessage.success("导出成功");
};
const fnDelete = debounce(
diff --git a/src/views/training_process_management/class_management/components/test_paper_type.vue b/src/views/training_process_management/class_management/components/test_paper_type.vue
index c2f827b..0e2a234 100644
--- a/src/views/training_process_management/class_management/components/test_paper_type.vue
+++ b/src/views/training_process_management/class_management/components/test_paper_type.vue
@@ -1,5 +1,5 @@
-
+
@@ -10,16 +10,41 @@
关闭
- 确定
+ 确定
+
+