mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
feat:增加项目/学习路径图在线任务列表及导出数据
This commit is contained in:
@@ -336,7 +336,50 @@ export default {
|
|||||||
state.tableDataTotalLoading = false;
|
state.tableDataTotalLoading = false;
|
||||||
state.tabledata = [];
|
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<res.data.data.studyDetailList.length;i++){
|
||||||
|
// 处理在线课字段和表格中字段保持一致
|
||||||
|
let obj = {
|
||||||
|
studentUserNo: res.data.data.studyDetailList[i].studentCode,
|
||||||
|
studentName: res.data.data.studyDetailList[i].studentName,
|
||||||
|
studentDepartName: res.data.data.studyDetailList[i].studentDepartName,
|
||||||
|
studentJobName: res.data.data.studyDetailList[i].studentJobName,
|
||||||
|
lastStudyTime: res.data.data.studyDetailList[i].finishedTime,
|
||||||
|
status: res.data.data.studyDetailList[i].status?res.data.data.studyDetailList[i].status:0
|
||||||
|
}
|
||||||
|
newData.push(obj)
|
||||||
|
}
|
||||||
|
state.tabledata = newData;
|
||||||
|
state.tableDataTotal = res.data.data.total;
|
||||||
|
}
|
||||||
|
}).catch(err=>{
|
||||||
|
console.log(err)
|
||||||
|
state.tableDataTotalLoading = false;
|
||||||
|
})
|
||||||
|
}else{
|
||||||
state.tableDataTotalLoading = false;
|
state.tableDataTotalLoading = false;
|
||||||
state.tabledata = [];
|
state.tabledata = [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -350,25 +350,30 @@ export default {
|
|||||||
"chapterId": props.datasource.chapterId,
|
"chapterId": props.datasource.chapterId,
|
||||||
"status": state.projectName,
|
"status": state.projectName,
|
||||||
"studentName": state.name,
|
"studentName": state.name,
|
||||||
|
"targetId":props.datasource.routerId,
|
||||||
"taskId": props.datasource.routerTaskId,
|
"taskId": props.datasource.routerTaskId,
|
||||||
"thirdId": props.datasource.targetId,
|
"thirdId": props.datasource.targetId,
|
||||||
"type": 1
|
"type": 1
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
console.log('在线课数据获取', res)
|
console.log('在线课数据获取', res)
|
||||||
state.tableDataTotalLoading = false;
|
if(res.data.code==200){
|
||||||
// 处理在线课字段和表格中字段保持一致
|
state.tableDataTotalLoading = false;
|
||||||
let obj = {
|
let newData = []
|
||||||
studentUserNo: 1,
|
for(let i=0;i<res.data.data.studyDetailList.length;i++){
|
||||||
studentName: 1,
|
// 处理在线课字段和表格中字段保持一致
|
||||||
studentDepartName: 1,
|
let obj = {
|
||||||
studentJobName: 1,
|
studentUserNo: res.data.data.studyDetailList[i].studentCode,
|
||||||
lastStudyTime: 1,
|
studentName: res.data.data.studyDetailList[i].studentName,
|
||||||
status: 1
|
studentDepartName: res.data.data.studyDetailList[i].studentDepartName,
|
||||||
|
studentJobName: res.data.data.studyDetailList[i].studentJobName,
|
||||||
|
lastStudyTime: res.data.data.studyDetailList[i].finishedTime,
|
||||||
|
status: res.data.data.studyDetailList[i].status?res.data.data.studyDetailList[i].status:0
|
||||||
|
}
|
||||||
|
newData.push(obj)
|
||||||
|
}
|
||||||
|
state.tabledata = newData;
|
||||||
|
state.tableDataTotal = res.data.data.total;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(obj)
|
|
||||||
|
|
||||||
|
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
console.log(err)
|
console.log(err)
|
||||||
state.tableDataTotalLoading = false;
|
state.tableDataTotalLoading = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user