mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
Merge branch 'zcwy-master' into dev0515
# Conflicts: # src/views/study/coursenew.vue
This commit is contained in:
@@ -20,6 +20,10 @@ const getTaskNum = function(){
|
|||||||
const userTaskList = function(data){
|
const userTaskList = function(data){
|
||||||
return ajax.postJson(baseURL,'/todoTask/queryTodoTaskDetail',data);
|
return ajax.postJson(baseURL,'/todoTask/queryTodoTaskDetail',data);
|
||||||
}
|
}
|
||||||
|
//查询未读数量
|
||||||
|
const queryTaskCounts = function(){
|
||||||
|
return ajax.get(baseURL,'/todoTask/queryTaskCounts');
|
||||||
|
}
|
||||||
//领导力必修
|
//领导力必修
|
||||||
const leadership = function(data){
|
const leadership = function(data){
|
||||||
return ajax.postJson(baseURL,'/todoTask/leadership',data);
|
return ajax.postJson(baseURL,'/todoTask/leadership',data);
|
||||||
@@ -51,5 +55,6 @@ export default {
|
|||||||
customized,
|
customized,
|
||||||
compulsoryList,
|
compulsoryList,
|
||||||
userDeleteStudy,
|
userDeleteStudy,
|
||||||
userRsSginupCourse
|
userRsSginupCourse,
|
||||||
|
queryTaskCounts
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -426,7 +426,6 @@ import {pageList} from "@/api/modules/lecturer"
|
|||||||
import courseImage from "@/components/Course/courseImage.vue"
|
import courseImage from "@/components/Course/courseImage.vue"
|
||||||
import testUser from '@/utils/testUsers.js'
|
import testUser from '@/utils/testUsers.js'
|
||||||
import apiManage from '@/api/manage/manage.js'
|
import apiManage from '@/api/manage/manage.js'
|
||||||
import {getList} from '@/api/growth'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UcMenu',
|
name: 'UcMenu',
|
||||||
components: {
|
components: {
|
||||||
@@ -438,7 +437,7 @@ export default {
|
|||||||
const route = this.$route;
|
const route = this.$route;
|
||||||
const { meta, path } = route;
|
const { meta, path } = route;
|
||||||
if(path == '/uc/study/task'){
|
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 == '查看受众'){
|
if(meta.title == '添加受众' || meta.title == '查看受众'){
|
||||||
meta.activeMenu = '/manage/ugroups'
|
meta.activeMenu = '/manage/ugroups'
|
||||||
@@ -485,28 +484,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
learnTotal(){
|
learnTotal(){
|
||||||
let params = {
|
apiManage.queryTaskCounts().then(res=>{
|
||||||
pageNo: 1,
|
this.proTotal =parseInt(res.data.count); //学习项目
|
||||||
pageSize: 10,
|
this.fistTotal =parseInt(res.data.count1); // 领导力必修
|
||||||
cmtask_user_status: "",
|
this.pathTotal =parseInt(res.data.count2); // 学习路径
|
||||||
cmtask_name: ""
|
this.growTotal = parseInt(res.data.count3); //成长路径
|
||||||
}
|
|
||||||
//领导力
|
|
||||||
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
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//讲师认证条数
|
//讲师认证条数
|
||||||
|
|||||||
@@ -756,7 +756,7 @@
|
|||||||
if (this.contentData.status < 2) {
|
if (this.contentData.status < 2) {
|
||||||
// this.contentData.status = 2; //进行中
|
// this.contentData.status = 2; //进行中
|
||||||
if(r.contentType != 61&&r.contentType != 20 && r.contentType != 10){
|
if(r.contentType != 61&&r.contentType != 20 && r.contentType != 10){
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.isContentTypeTwo = r.contentType
|
this.isContentTypeTwo = r.contentType
|
||||||
$this.isShowTime()
|
$this.isShowTime()
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|||||||
Reference in New Issue
Block a user