diff --git a/src/api/index1.js b/src/api/index1.js index 8e17b559..8043bd73 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-04 22:45:31 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-01-04 12:36:46 + * @LastEditTime: 2023-01-05 11:06:02 * @FilePath: /fe-manage/src/api/index1.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -155,6 +155,14 @@ export const noticeList = (projectId) => // export const choiceEvaluation = (obj) => http.post('/evaluation/choiceEvaluation', obj); + +// 获取任务学员的信息 +export const AssessmentManagementMessage = (obj) => http.get(`/admin/student/getTaskStudent`, { params: obj }) + +// 考试导出任务学员信息 +export const exportTaskStudent = (obj) => http.post('/admin/student/exportTaskStudent', obj) + + // //面授课批量导入成绩 export const batchImportScore = (offcoursePlanId, obj) => http.post(`/admin/offcourse/batchImportScore?offcoursePlanId=${offcoursePlanId}`, obj); \ No newline at end of file diff --git a/src/api/indexTaskManage.js b/src/api/indexTaskManage.js index e5c8478a..f812131a 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) diff --git a/src/components/drawers/project/ProjectEvalManage.vue b/src/components/drawers/project/ProjectEvalManage.vue index 5c946c7d..3696b674 100644 --- a/src/components/drawers/project/ProjectEvalManage.vue +++ b/src/components/drawers/project/ProjectEvalManage.vue @@ -1,5 +1,6 @@ + diff --git a/src/components/drawers/project/ProjectExamManage.vue b/src/components/drawers/project/ProjectExamManage.vue index 625ce787..173685a1 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,21 @@ export default { getData(); }; + {/* 导出数据 */} + function exportData() { + window.open(`${process.env.VUE_APP_PROXY_URL}admin/exam/manage/exportExam?chapterId=${props.datasource.chapterId}&targetId=${props.datasource.routerId}&taskId=${props.datasource.courseId}&type=${1}`) + {/* 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 +380,8 @@ export default { showEScoreModal, searchTableData, reseatTableData, - changePaginationStu + changePaginationStu, + exportData }; }, }; diff --git a/src/components/drawers/project/ProjectFaceTaskManage.vue b/src/components/drawers/project/ProjectFaceTaskManage.vue index 77b3cb94..b5631d7c 100644 --- a/src/components/drawers/project/ProjectFaceTaskManage.vue +++ b/src/components/drawers/project/ProjectFaceTaskManage.vue @@ -152,7 +152,7 @@ import CKWork from "../CheckWork.vue"; import CQue from "../CheckQue.vue"; import EntryScores from "../EntryScores.vue"; // import * as api from "../../../api/index"; -import * as api from "../../../api/indexTaskManage"; +import * as api from "../../../api/index1"; export default { name: "ProjectFaceTaskManage", components: { @@ -548,7 +548,7 @@ export default { // 导出数据 function exportTaskStu() { api - .ExportTaskStudent({ + .exportTaskStudent({ pageNo: state.currentPage, pageSize: state.pageSize, currentStageId: props.projectTaskInfo.stageId, diff --git a/src/components/drawers/project/ProjectHomeWorkManage.vue b/src/components/drawers/project/ProjectHomeWorkManage.vue index eae31dc4..29dc41f2 100644 --- a/src/components/drawers/project/ProjectHomeWorkManage.vue +++ b/src/components/drawers/project/ProjectHomeWorkManage.vue @@ -113,9 +113,9 @@ hideOnSinglePage="true" :pageSize="pageSize" :current="currentPage" - :total="tableDataTotal2" + :total="tableDataTotal" class="pagination" - v-if="tableDataTotal2 > 10" + v-if="tableDataTotal > 10" @change="changePaginationStu" />
@@ -146,7 +146,7 @@ import CQue from "../CheckQue.vue"; // import EntryScores from "../EntryScores.vue"; import EScore from "../ExportScore.vue"; // import * as api from "../../../api/index"; -import * as api from "../../../api/indexTaskManage"; +import * as api from "../../../api/index1"; export default { name: "ProjectHomeWorkManage", components: { @@ -451,7 +451,7 @@ export default { // 导出数据 function exportTaskStu() { api - .ExportTaskStudent({ + .exportTaskStudent({ pageNo: state.currentPage, pageSize: state.pageSize, currentStageId: props.projectTaskInfo.stageId, diff --git a/src/components/drawers/project/ProjectOnlineManage.vue b/src/components/drawers/project/ProjectOnlineManage.vue index 8d58f717..2084ba37 100644 --- a/src/components/drawers/project/ProjectOnlineManage.vue +++ b/src/components/drawers/project/ProjectOnlineManage.vue @@ -36,7 +36,7 @@
起止时间:— @@ -298,7 +298,7 @@ export default { // 获取数据 function getData() { - if (props.datasource.type == 11) { + if (props.datasource.type == 11 || props.datasource.type == 9 || props.datasource.type == 6 || props.datasource.type == 7) { // 此处为获取评估学员的接口 - 如后续还有用到此接口的公共任务可直接在if里面加||判断即可 console.log("我是传递的查询参数", { pageNo: state.currentPage, @@ -306,6 +306,8 @@ export default { currentStageId: props.datasource.stageId, type: 1, pid: props.datasource.projectId, + taskId: props.datasource.projectTaskId, + taskType: props.datasource.type, status: state.projectName, studentName: state.name, }); @@ -316,6 +318,8 @@ export default { currentStageId: props.datasource.stageId, type: 1, pid: props.datasource.projectId, + taskId: props.datasource.projectTaskId, + taskType: props.datasource.type, status: state.projectName, studentName: state.name, }) @@ -362,20 +366,8 @@ export default { // 导出数据 function exportTaskStu() { - api - .ExportTaskStudent({ - pageNo: state.currentPage, - pageSize: state.pageSize, - currentStageId: props.datasource.stageId, - type: 1, - pid: props.datasource.projectId, - }) - .then((res) => { - console.log(res); - }) - .catch((err) => { - console.log(err); - }); + window.open(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?currentStageId=${props.datasource.stageId}&type=${1}&pid=${props.datasource.projectId}&taskId=${props.datasource.projectTaskId}&taskType=${props.datasource.type}`) + // window.open(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?pageNo=${state.currentPage}&pageSize=${state.pageSize}¤tStageId=${props.datasource.stageId}&type=${1}&pid=${props.datasource.projectId}&taskId=${props.datasource.projectTaskId}&status=${state.name}&studentName=${state.projectName}`) } return { diff --git a/src/components/drawers/router/RouterCommonManage.vue b/src/components/drawers/router/RouterCommonManage.vue index e25e1200..b4f764ca 100644 --- a/src/components/drawers/router/RouterCommonManage.vue +++ b/src/components/drawers/router/RouterCommonManage.vue @@ -36,7 +36,7 @@
起止时间:— @@ -298,7 +298,7 @@ export default { // 获取数据 function getData() { - if (props.datasource.type == 11) { + if (props.datasource.type == 11 || props.datasource.type == 9 || props.datasource.type == 6 || props.datasource.type == 7) { // 此处为获取评估学员的接口 - 如后续还有用到此接口的公共任务可直接在if里面加||判断即可 console.log("我是传递的查询参数", { pageNo: state.currentPage, @@ -306,6 +306,8 @@ export default { currentStageId: props.datasource.chapterId, type: 2, pid: props.datasource.routerId, + taskId: props.datasource.routerTaskId, + taskType: props.datasource.type, status: state.projectName, studentName: state.name, }); @@ -316,6 +318,8 @@ export default { currentStageId: props.datasource.chapterId, type: 2, pid: props.datasource.routerId, + taskId: props.datasource.routerTaskId, + taskType: props.datasource.type, status: state.projectName, studentName: state.name, }) @@ -362,20 +366,9 @@ export default { // 导出数据 function exportTaskStu() { - api - .ExportTaskStudent({ - pageNo: state.currentPage, - pageSize: state.pageSize, - currentStageId: props.datasource.chapterId, - type: 2, - pid: props.datasource.routerId, - }) - .then((res) => { - console.log(res); - }) - .catch((err) => { - console.log(err); - }); + console.log(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&taskType=${props.datasource.type}`) + window.open(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&taskType=${props.datasource.type}`) + // window.open(`${process.env.VUE_APP_PROXY_URL}admin/student/exportTaskStudent?pageNo=${state.currentPage}&pageSize=${state.pageSize}¤tStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&status=${state.name}&studentName=${state.projectName}`) } return { diff --git a/src/components/drawers/router/RouterEvaluationManage.vue b/src/components/drawers/router/RouterEvaluationManage.vue index a5219c52..096b5661 100644 --- a/src/components/drawers/router/RouterEvaluationManage.vue +++ b/src/components/drawers/router/RouterEvaluationManage.vue @@ -2,14 +2,16 @@
-
【测评】{{ title }}
+
+ 【测评】{{ title }} +
-
起止时间:2022-07-21 14:00 ~ 2022-7-30 14:00
+
+ 起止时间:— +
+
+ 起止时间:{{ datasource.startTime }} ~ {{ datasource.endTime }} +