mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
未读数量
This commit is contained in:
@@ -426,7 +426,6 @@ import {pageList} from "@/api/modules/lecturer"
|
||||
import courseImage from "@/components/Course/courseImage.vue"
|
||||
import testUser from '@/utils/testUsers.js'
|
||||
import apiManage from '@/api/manage/manage.js'
|
||||
import {getList} from '@/api/growth'
|
||||
export default {
|
||||
name: 'UcMenu',
|
||||
components: {
|
||||
@@ -438,7 +437,7 @@ export default {
|
||||
const route = this.$route;
|
||||
const { meta, path } = route;
|
||||
if(path == '/uc/study/task'){
|
||||
return '/uc/study/task?type='+route.query.type
|
||||
return '/uc/study/task?type=' + (route.query.type || 1)
|
||||
}
|
||||
if(meta.title == '添加受众' || meta.title == '查看受众'){
|
||||
meta.activeMenu = '/manage/ugroups'
|
||||
@@ -485,28 +484,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
learnTotal(){
|
||||
let params = {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
cmtask_user_status: "",
|
||||
cmtask_name: ""
|
||||
}
|
||||
//领导力
|
||||
apiManage.leadership(params).then(res=>{
|
||||
this.fistTotal =parseInt(res.data.total);
|
||||
})
|
||||
//项目
|
||||
apiManage.customized(params).then(res=>{
|
||||
this.proTotal =parseInt(res.data.total);
|
||||
})
|
||||
//学习路径
|
||||
apiManage.compulsoryList(params).then(res=>{
|
||||
this.pathTotal =parseInt(res.data.total);
|
||||
})
|
||||
getList(this.userInfo.aid).then(res=>{
|
||||
if(res.code == 200 ){
|
||||
this.growTotal = 1
|
||||
}
|
||||
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); //成长路径
|
||||
})
|
||||
},
|
||||
//讲师认证条数
|
||||
|
||||
Reference in New Issue
Block a user