diff --git a/src/components/drawers/project/ProjectOnlineManage.vue b/src/components/drawers/project/ProjectOnlineManage.vue index ac1239b6..b9de20f0 100644 --- a/src/components/drawers/project/ProjectOnlineManage.vue +++ b/src/components/drawers/project/ProjectOnlineManage.vue @@ -336,7 +336,50 @@ export default { state.tableDataTotalLoading = false; state.tabledata = []; }); - } else { + } else if(props.datasource.type == 1) { + console.log("我是传递的查询参数", { + "chapterId": props.datasource.stageId=="0"?"":props.datasource.stageId, + "status": state.projectName, + "studentName": state.name, + "targetId":props.datasource.projectId, + "taskId": props.datasource.projectTaskId, + "thirdId": props.datasource.targetId, + "type": 1 + }); + + api.QueryOnlineManagementDetail({ + "chapterId": props.datasource.stageId=="0"?"":props.datasource.stageId, + "status": state.projectName, + "studentName": state.name, + "targetId":props.datasource.projectId, + "taskId": props.datasource.projectTaskId, + "thirdId": props.datasource.targetId, + "type": 1 + }).then(res=>{ + console.log('在线课数据获取', res) + if(res.data.code==200){ + state.tableDataTotalLoading = false; + let newData = [] + for(let i=0;i{ + console.log(err) + state.tableDataTotalLoading = false; + }) + }else{ state.tableDataTotalLoading = false; state.tabledata = []; } diff --git a/src/components/drawers/router/RouterCommonManage.vue b/src/components/drawers/router/RouterCommonManage.vue index d802b806..caa56979 100644 --- a/src/components/drawers/router/RouterCommonManage.vue +++ b/src/components/drawers/router/RouterCommonManage.vue @@ -350,25 +350,30 @@ export default { "chapterId": props.datasource.chapterId, "status": state.projectName, "studentName": state.name, + "targetId":props.datasource.routerId, "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 + if(res.data.code==200){ + state.tableDataTotalLoading = false; + let newData = [] + for(let i=0;i{ console.log(err) state.tableDataTotalLoading = false;