防止404报错,临时注释

This commit is contained in:
zhangsir
2024-09-11 20:19:08 +08:00
parent 59571d216e
commit 5119aadf66
3 changed files with 76 additions and 71 deletions

View File

@@ -239,13 +239,13 @@ export default {
}
const promises = [
//领导力
apiManage.leadership(params).then(res=>{
this.fistTotals =parseInt(res.data.total);
}),
// apiManage.leadership(params).then(res=>{
// this.fistTotals =parseInt(res.data.total);
// }),
//学习路径
apiManage.compulsoryList(params).then(res=>{
this.pathTotals =parseInt(res.data.total);
}),
// apiManage.compulsoryList(params).then(res=>{
// this.pathTotals =parseInt(res.data.total);
// }),
getList(this.userInfo.aid).then(res=>{
if(res.code == 200 && Object.keys(res.data).length){
this.growTotal = 1

View File

@@ -480,11 +480,14 @@ export default {
overlayShow: false,
instructor:0,
fistTotal:0,
fistTotals:1,
// fistTotals:1,
fistTotals:0,
proTotal: 0,
proTotals: 1,
// proTotals: 1,
proTotals: 0,
pathTotal:0,
pathTotals:1,
// pathTotals:1,
pathTotals:0,
growTotal: 1,
openedsList:[],
courseNum: 0,
@@ -542,17 +545,17 @@ export default {
}
const promises = [
//领导力
apiManage.leadership(params).then(res=>{
this.fistTotals =parseInt(res.data.total);
}),
// apiManage.leadership(params).then(res=>{
// this.fistTotals =parseInt(res.data.total);
// }),
//项目
// apiManage.customized(params).then(res=>{
// this.proTotals =parseInt(res.data.total);
// })
//学习路径
apiManage.compulsoryList(params).then(res=>{
this.pathTotals =parseInt(res.data.total);
}),
// apiManage.compulsoryList(params).then(res=>{
// this.pathTotals =parseInt(res.data.total);
// }),
getList(this.userInfo.aid).then(res=>{
if(res.code == 200 && Object.keys(res.data).length){
this.growTotal = 1
@@ -575,12 +578,14 @@ export default {
}
}
});
apiManage.queryTaskCounts({}).then(res=>{
// this.proTotal =parseInt(res.data.count); //学习项目
this.fistTotal =parseInt(res.data.count1); // 领导力必修
this.pathTotal =parseInt(res.data.count2); // 学习路径
// this.growTotal = parseInt(res.data.count3); //成长路径
})
// apiManage.queryTaskCounts({}).then(res=>{
// // this.proTotal =parseInt(res.data.count); //学习项目
// this.fistTotal =parseInt(res.data.count1); // 领导力必修
// this.pathTotal =parseInt(res.data.count2); // 学习路径
// // this.growTotal = parseInt(res.data.count3); //成长路径
// })
this.fistTotal = 1
this.pathTotal = 1
},
//讲师认证条数
instructorCertification(){

View File

@@ -198,45 +198,9 @@ export default {
cmtask_name:this.params.cmtask_name,
}
this.loading=true;
if(this.isType == 1){
//领导力必修
apiManage.leadership(params).then(res=>{
if(res.code==200){
this.total =parseInt(res.data.total);
this.couresList = res.data.records;
}else{
this.$message.error('查询数据失败:'+res.msg);
}
this.loading=false;
}).catch(()=>{
this.loading=false;
})
}else if (this.isType == 2){
//定制化学习
apiManage.compulsoryList(params).then(res=>{
if(res.code==200){
this.total =parseInt(res.data.total);
this.couresList = res.data.records;
}else{
this.$message.error('查询数据失败:'+res.msg);
}
this.loading=false;
}).catch(()=>{
this.loading=false;
})
}else{
apiManage.leadership(params).then(res=>{
if(res.code==200){
this.total =parseInt(res.data.total);
this.couresList = res.data.records;
}else{
this.$message.error('查询数据失败:'+res.msg);
}
this.loading=false;
}).catch(()=>{
this.loading=false;
})
// apiManage.userTaskList(params).then(res=>{
// if(this.isType == 1){
// //领导力必修
// apiManage.leadership(params).then(res=>{
// if(res.code==200){
// this.total =parseInt(res.data.total);
// this.couresList = res.data.records;
@@ -247,7 +211,43 @@ export default {
// }).catch(()=>{
// this.loading=false;
// })
}
// }else if (this.isType == 2){
// //定制化学习
// apiManage.compulsoryList(params).then(res=>{
// if(res.code==200){
// this.total =parseInt(res.data.total);
// this.couresList = res.data.records;
// }else{
// this.$message.error('查询数据失败:'+res.msg);
// }
// this.loading=false;
// }).catch(()=>{
// this.loading=false;
// })
// }else{
// apiManage.leadership(params).then(res=>{
// if(res.code==200){
// this.total =parseInt(res.data.total);
// this.couresList = res.data.records;
// }else{
// this.$message.error('查询数据失败:'+res.msg);
// }
// this.loading=false;
// }).catch(()=>{
// this.loading=false;
// })
// // apiManage.userTaskList(params).then(res=>{
// // if(res.code==200){
// // this.total =parseInt(res.data.total);
// // this.couresList = res.data.records;
// // }else{
// // this.$message.error('查询数据失败:'+res.msg);
// // }
// // this.loading=false;
// // }).catch(()=>{
// // this.loading=false;
// // })
// }
},
search(){
this.page=1;