课程查询受众权限接口修改

This commit is contained in:
daihh
2023-03-08 18:03:25 +08:00
parent 0c50b6e21c
commit 15ff5fa1cf
3 changed files with 48 additions and 25 deletions

View File

@@ -180,6 +180,7 @@
import {toScore} from '@/utils/tools.js'
import apiBoeCourse from '@/api/boe/course.js'
import apiUserGroup from "@/api/modules/usergroup.js";
import apiUserbasic from '@/api/boe/userbasic.js'
import apiOnceMedal from '@/api/phase2/onceMedal.js'
import { mapGetters,mapActions} from 'vuex';
export default {
@@ -281,8 +282,16 @@
//this.signInShow = true;//显示
}
this.getSysTypeTree();
this.findCourseData();
this.loadSysTypes();
if(this.audiences.length==0){
apiUserbasic.getInAudienceIds(this.userInfo.aid).then(rs=>{
this.audiences=rs;
this.findCourseData();
});
}else{
this.findCourseData();
}
},
methods: {
...mapActions({
@@ -426,8 +435,10 @@
sysType2:'',
sysType3:'',
scenes:'',
audiences:this.audiences.join(','),
type:''
}
query.type=this.dataFilter.courseParams.type;
// if(this.tabIndex==0){
// query.orderField='publishTime';