mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
防止404报错,临时注释
This commit is contained in:
@@ -239,13 +239,13 @@ export default {
|
|||||||
}
|
}
|
||||||
const promises = [
|
const promises = [
|
||||||
//领导力
|
//领导力
|
||||||
apiManage.leadership(params).then(res=>{
|
// apiManage.leadership(params).then(res=>{
|
||||||
this.fistTotals =parseInt(res.data.total);
|
// this.fistTotals =parseInt(res.data.total);
|
||||||
}),
|
// }),
|
||||||
//学习路径
|
//学习路径
|
||||||
apiManage.compulsoryList(params).then(res=>{
|
// apiManage.compulsoryList(params).then(res=>{
|
||||||
this.pathTotals =parseInt(res.data.total);
|
// this.pathTotals =parseInt(res.data.total);
|
||||||
}),
|
// }),
|
||||||
getList(this.userInfo.aid).then(res=>{
|
getList(this.userInfo.aid).then(res=>{
|
||||||
if(res.code == 200 && Object.keys(res.data).length){
|
if(res.code == 200 && Object.keys(res.data).length){
|
||||||
this.growTotal = 1
|
this.growTotal = 1
|
||||||
|
|||||||
@@ -480,11 +480,14 @@ export default {
|
|||||||
overlayShow: false,
|
overlayShow: false,
|
||||||
instructor:0,
|
instructor:0,
|
||||||
fistTotal:0,
|
fistTotal:0,
|
||||||
fistTotals:1,
|
// fistTotals:1,
|
||||||
|
fistTotals:0,
|
||||||
proTotal: 0,
|
proTotal: 0,
|
||||||
proTotals: 1,
|
// proTotals: 1,
|
||||||
|
proTotals: 0,
|
||||||
pathTotal:0,
|
pathTotal:0,
|
||||||
pathTotals:1,
|
// pathTotals:1,
|
||||||
|
pathTotals:0,
|
||||||
growTotal: 1,
|
growTotal: 1,
|
||||||
openedsList:[],
|
openedsList:[],
|
||||||
courseNum: 0,
|
courseNum: 0,
|
||||||
@@ -542,17 +545,17 @@ export default {
|
|||||||
}
|
}
|
||||||
const promises = [
|
const promises = [
|
||||||
//领导力
|
//领导力
|
||||||
apiManage.leadership(params).then(res=>{
|
// apiManage.leadership(params).then(res=>{
|
||||||
this.fistTotals =parseInt(res.data.total);
|
// this.fistTotals =parseInt(res.data.total);
|
||||||
}),
|
// }),
|
||||||
//项目
|
//项目
|
||||||
// apiManage.customized(params).then(res=>{
|
// apiManage.customized(params).then(res=>{
|
||||||
// this.proTotals =parseInt(res.data.total);
|
// this.proTotals =parseInt(res.data.total);
|
||||||
// })
|
// })
|
||||||
//学习路径
|
//学习路径
|
||||||
apiManage.compulsoryList(params).then(res=>{
|
// apiManage.compulsoryList(params).then(res=>{
|
||||||
this.pathTotals =parseInt(res.data.total);
|
// this.pathTotals =parseInt(res.data.total);
|
||||||
}),
|
// }),
|
||||||
getList(this.userInfo.aid).then(res=>{
|
getList(this.userInfo.aid).then(res=>{
|
||||||
if(res.code == 200 && Object.keys(res.data).length){
|
if(res.code == 200 && Object.keys(res.data).length){
|
||||||
this.growTotal = 1
|
this.growTotal = 1
|
||||||
@@ -575,12 +578,14 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
apiManage.queryTaskCounts({}).then(res=>{
|
// apiManage.queryTaskCounts({}).then(res=>{
|
||||||
// this.proTotal =parseInt(res.data.count); //学习项目
|
// // this.proTotal =parseInt(res.data.count); //学习项目
|
||||||
this.fistTotal =parseInt(res.data.count1); // 领导力必修
|
// this.fistTotal =parseInt(res.data.count1); // 领导力必修
|
||||||
this.pathTotal =parseInt(res.data.count2); // 学习路径
|
// this.pathTotal =parseInt(res.data.count2); // 学习路径
|
||||||
// this.growTotal = parseInt(res.data.count3); //成长路径
|
// // this.growTotal = parseInt(res.data.count3); //成长路径
|
||||||
})
|
// })
|
||||||
|
this.fistTotal = 1
|
||||||
|
this.pathTotal = 1
|
||||||
},
|
},
|
||||||
//讲师认证条数
|
//讲师认证条数
|
||||||
instructorCertification(){
|
instructorCertification(){
|
||||||
|
|||||||
@@ -198,45 +198,9 @@ export default {
|
|||||||
cmtask_name:this.params.cmtask_name,
|
cmtask_name:this.params.cmtask_name,
|
||||||
}
|
}
|
||||||
this.loading=true;
|
this.loading=true;
|
||||||
if(this.isType == 1){
|
// if(this.isType == 1){
|
||||||
//领导力必修
|
// //领导力必修
|
||||||
apiManage.leadership(params).then(res=>{
|
// 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(res.code==200){
|
// if(res.code==200){
|
||||||
// this.total =parseInt(res.data.total);
|
// this.total =parseInt(res.data.total);
|
||||||
// this.couresList = res.data.records;
|
// this.couresList = res.data.records;
|
||||||
@@ -247,7 +211,43 @@ export default {
|
|||||||
// }).catch(()=>{
|
// }).catch(()=>{
|
||||||
// this.loading=false;
|
// 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(){
|
search(){
|
||||||
this.page=1;
|
this.page=1;
|
||||||
|
|||||||
Reference in New Issue
Block a user