mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-08 02:16:43 +08:00
受众
This commit is contained in:
@@ -295,6 +295,7 @@ import {courseType} from '../../utils/tools.js';
|
||||
import apiCourse from '../../api/modules/course.js';
|
||||
// import {resOwnerIndexName,sysTypeIndexName} from '@/utils/type.js';
|
||||
import { mapGetters,mapActions } from 'vuex';
|
||||
import apiUserbasic from "@/api/boe/userbasic.js"
|
||||
export default {
|
||||
name: 'manageCourse',
|
||||
components: {courseForm, manager, auditCourse1, auditCourse2,adminPage},
|
||||
@@ -303,6 +304,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
audiences: [],
|
||||
forChoose:false,
|
||||
pageManage:false,
|
||||
showDetails: false,
|
||||
@@ -385,6 +387,7 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getAudiences()
|
||||
let chooseFlag=this.$route.query.f;
|
||||
this.extendRefId=this.$route.query.refId;
|
||||
this.extendRefType=this.$route.query.refType;
|
||||
@@ -401,7 +404,7 @@ export default {
|
||||
}
|
||||
// this.getTree();
|
||||
// this.getTypeData();
|
||||
this.searchData();
|
||||
// this.searchData();
|
||||
this.getResOwnerTree().then(rs=>{
|
||||
this.resOwnerListMap=rs;
|
||||
});
|
||||
@@ -415,6 +418,14 @@ export default {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getAudiences(){
|
||||
apiUserbasic.getInAudienceIds().then(res=>{
|
||||
if (res.status == 200) {
|
||||
this.audiences = res.result;
|
||||
}
|
||||
this.searchData();
|
||||
})
|
||||
},
|
||||
showStudent(row){
|
||||
//出现学员管理
|
||||
window.parent.openSelectStu(row);
|
||||
@@ -647,6 +658,9 @@ export default {
|
||||
this.params.sysType3 = this.sysTypeList[2];
|
||||
if(this.$route.query.courseIds) this.params.courseIds = this.$route.query.courseIds.split(',');
|
||||
if(this.$route.query.projectId) this.params.projectId = this.$route.query.projectId;
|
||||
if(this.audiences && this.audiences.length > 0){
|
||||
this.params.audiences = this.audiences.join(',');
|
||||
}
|
||||
apiCourse.pageList(this.params).then(rs=>{
|
||||
if(rs.status==200){
|
||||
this.pageData = rs.result.list;
|
||||
|
||||
Reference in New Issue
Block a user