This commit is contained in:
zhangsir
2024-07-11 10:59:07 +08:00
parent 972f2cb097
commit 158c836cd1
3 changed files with 31 additions and 39 deletions

View File

@@ -281,7 +281,7 @@
<template slot="title">
<!-- <svg-icon icon-class="mystudy"></svg-icon> -->
<i style="margin-right: 8px;width: 19px;color:#303133;" class="el-icon-collection"></i>
<span><el-badge :value="fistTotal + pathTotal + proTotal||''" class="item">我的必修</el-badge></span>
<span><el-badge :value="fistTotal + pathTotal||''" class="item">我的必修</el-badge></span>
</template>
<el-menu-item v-if="fistTotals" index="/uc/study/task?type=1">
<span slot="title" class="study textl"><el-badge :value="fistTotal||''" class="item">领导力必修</el-badge></span>
@@ -289,8 +289,8 @@
<el-menu-item v-if="growTotal" index="/uc/study/growth">
<span slot="title" class="textl">专业力必修</span>
</el-menu-item>
<el-menu-item v-if="pathTotals + proTotals" index="/uc/study/task?type=2">
<span slot="title" class="textl"><el-badge :value="pathTotal + proTotal||''" class="item">定制化学习</el-badge></span>
<el-menu-item v-if="pathTotals" index="/uc/study/task?type=2">
<span slot="title" class="textl"><el-badge :value="pathTotal||''" class="item">定制化学习</el-badge></span>
</el-menu-item>
</el-submenu>
<el-menu-item v-else index="/uc/study/task?type=9" v-show="curIdentity == 1">
@@ -463,12 +463,12 @@ export default {
overlayShow: false,
instructor:0,
fistTotal:0,
fistTotals:0,
fistTotals:1,
proTotal: 0,
proTotals: 0,
proTotals: 1,
pathTotal:0,
pathTotals:0,
growTotal: 0,
pathTotals:1,
growTotal: 1,
openedsList:[]
};
},
@@ -503,9 +503,9 @@ export default {
this.fistTotals =parseInt(res.data.total);
})
//项目
apiManage.customized(params).then(res=>{
this.proTotals =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);
@@ -513,10 +513,12 @@ export default {
getList(this.userInfo.aid).then(res=>{
if(res.code == 200 && Object.keys(res.data).length){
this.growTotal = 1
}else{
this.growTotal = 0
}
})
apiManage.queryTaskCounts().then(res=>{
this.proTotal =parseInt(res.data.count); //学习项目
// this.proTotal =parseInt(res.data.count); //学习项目
this.fistTotal =parseInt(res.data.count1); // 领导力必修
this.pathTotal =parseInt(res.data.count2); // 学习路径
// this.growTotal = parseInt(res.data.count3); //成长路径