防止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

@@ -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(){