From 5119aadf668e830210ca1e8ebc9f9c7a44ea79c5 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 11 Sep 2024 20:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2404=E6=8A=A5=E9=94=99?= =?UTF-8?q?=EF=BC=8C=E4=B8=B4=E6=97=B6=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PortalHeader.vue | 12 ++-- src/components/UserCenter/menu.vue | 35 +++++----- src/views/study/TaskList.vue | 100 ++++++++++++++--------------- 3 files changed, 76 insertions(+), 71 deletions(-) diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index 1c55922c..ffac7369 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -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 diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index ac32d60f..8562fe43 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -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(){ diff --git a/src/views/study/TaskList.vue b/src/views/study/TaskList.vue index dbf224d7..9f5db23d 100644 --- a/src/views/study/TaskList.vue +++ b/src/views/study/TaskList.vue @@ -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;