mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
个人中心临时修改,后期优化
This commit is contained in:
@@ -198,56 +198,56 @@ 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(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;
|
||||
// // })
|
||||
// }
|
||||
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(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;
|
||||
|
||||
Reference in New Issue
Block a user