From 176aabf211194a4881bf70bd81e63a4fce6637cd Mon Sep 17 00:00:00 2001 From: wyx Date: Wed, 4 Jan 2023 18:15:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE/?= =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E8=B7=AF=E5=BE=84=E5=9B=BE=E8=80=83=E8=AF=95?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=89=8D=E6=96=B9=E9=80=89=E6=8B=A9=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=80=83=E8=AF=95=E5=AF=BC=E5=87=BA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexTaskManage.js | 4 +-- .../drawers/project/ProjectExamManage.vue | 25 +++++++++++++----- .../router/RouterExaminationManage.vue | 26 +++++++++++++------ 3 files changed, 38 insertions(+), 17 deletions(-) diff --git a/src/api/indexTaskManage.js b/src/api/indexTaskManage.js index a06f82f1..6eba43cb 100644 --- a/src/api/indexTaskManage.js +++ b/src/api/indexTaskManage.js @@ -8,5 +8,5 @@ export const ExamManagementMessage = (obj) => http.post('/admin/exam/manage/quer // 获取评估管理的信息 export const AssessmentManagementMessage = (obj) => http.get(`/admin/student/getTaskStudent`, {params: obj}) -// 导出学员信息 -export const ExportTaskStudent = (obj) => http.get('/admin/student/exportTaskStudent', {params: obj}) \ No newline at end of file +// 考试导出学员信息 +export const ExportExam = (obj) => http.post('/admin/exam/manage/exportExam', obj) \ No newline at end of file diff --git a/src/components/drawers/project/ProjectExamManage.vue b/src/components/drawers/project/ProjectExamManage.vue index 625ce787..fe3daa11 100644 --- a/src/components/drawers/project/ProjectExamManage.vue +++ b/src/components/drawers/project/ProjectExamManage.vue @@ -61,7 +61,7 @@
催促考试
-
+
导出数据
@@ -90,10 +90,6 @@ :loading="loadingData" :scroll="{ x: 900 }" :pagination="false" - :row-selection="{ - selectedRowKeys: selectedRowKeys, - onChange: onSelectChange, - }" />
@@ -189,7 +185,7 @@ export default { dataIndex: "studentCode", key: "studentCode", width: 50, - align: "left", + align: "center", className: "h head" }, { @@ -358,6 +354,20 @@ export default { getData(); }; + {/* 导出数据 */} + function exportData() { + api.ExportExam({ + "chapterId": props.datasource.chapterId, + "targetId": props.datasource.routerId, + "taskId": props.datasource.courseId, + "type": 1 + }).then(res=>{ + console.log(res) + }).catch(err=>{ + console.log(err) + }) + } + return { ...toRefs(state), selectProjectName, @@ -369,7 +379,8 @@ export default { showEScoreModal, searchTableData, reseatTableData, - changePaginationStu + changePaginationStu, + exportData }; }, }; diff --git a/src/components/drawers/router/RouterExaminationManage.vue b/src/components/drawers/router/RouterExaminationManage.vue index fef2f9a6..ab81a563 100644 --- a/src/components/drawers/router/RouterExaminationManage.vue +++ b/src/components/drawers/router/RouterExaminationManage.vue @@ -61,8 +61,8 @@
催促考试
-
-
+
+
导出数据