From 668b8781518f78b3dd932daa976df011cd6d62fb Mon Sep 17 00:00:00 2001 From: wyx Date: Thu, 5 Jan 2023 16:02:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=84?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86=E7=95=8C=E9=9D=A2=E8=B5=B7?= =?UTF-8?q?=E6=AD=A2=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexTaskManage.js | 3 ++ .../drawers/router/RouterCommonManage.vue | 39 ++++++++++++++++++- .../drawers/router/RouterEvaluationManage.vue | 8 ++-- 3 files changed, 45 insertions(+), 5 deletions(-) diff --git a/src/api/indexTaskManage.js b/src/api/indexTaskManage.js index f812131a..01ce2d78 100644 --- a/src/api/indexTaskManage.js +++ b/src/api/indexTaskManage.js @@ -10,3 +10,6 @@ export const AssessmentManagementMessage = (obj) => http.get(`/admin/student/get // 考试导出学员信息 export const ExportExam = (obj) => http.post('/admin/exam/manage/exportExam', obj) + +// 获取在线管理的信息 +export const QueryOnlineManagementDetail = (obj) => http.post('/admin/online/manage/queryOnlineManagementDetail', obj) \ No newline at end of file diff --git a/src/components/drawers/router/RouterCommonManage.vue b/src/components/drawers/router/RouterCommonManage.vue index e3d80578..d802b806 100644 --- a/src/components/drawers/router/RouterCommonManage.vue +++ b/src/components/drawers/router/RouterCommonManage.vue @@ -336,7 +336,44 @@ export default { state.tableDataTotalLoading = false; state.tabledata = []; }); - } else { + } else if(props.datasource.type == 1) { + console.log("我是传递的查询参数", { + "chapterId": props.datasource.chapterId, + "status": state.projectName, + "studentName": state.name, + "taskId": props.datasource.routerTaskId, + "thirdId": props.datasource.targetId, + "type": 1 + }); + + api.QueryOnlineManagementDetail({ + "chapterId": props.datasource.chapterId, + "status": state.projectName, + "studentName": state.name, + "taskId": props.datasource.routerTaskId, + "thirdId": props.datasource.targetId, + "type": 1 + }).then(res=>{ + console.log('在线课数据获取', res) + state.tableDataTotalLoading = false; + // 处理在线课字段和表格中字段保持一致 + let obj = { + studentUserNo: 1, + studentName: 1, + studentDepartName: 1, + studentJobName: 1, + lastStudyTime: 1, + status: 1 + } + + console.log(obj) + + + }).catch(err=>{ + console.log(err) + state.tableDataTotalLoading = false; + }) + }else{ state.tableDataTotalLoading = false; state.tabledata = []; } diff --git a/src/components/drawers/router/RouterEvaluationManage.vue b/src/components/drawers/router/RouterEvaluationManage.vue index 425e1bc1..ec8576e8 100644 --- a/src/components/drawers/router/RouterEvaluationManage.vue +++ b/src/components/drawers/router/RouterEvaluationManage.vue @@ -20,13 +20,13 @@
- 起止时间:— + > + 起止时间:{{ datasource.startTime }} ~ {{ datasource.endTime }}
- 起止时间:{{ datasource.startTime }} ~ {{ datasource.endTime }} + 起止时间:—