From 0b7918331db7199c58640ea527765392808bddb2 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 4 Jul 2024 09:55:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=97=E4=BC=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/ManageList.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/course/ManageList.vue b/src/views/course/ManageList.vue index 5b57bf50..1934185c 100644 --- a/src/views/course/ManageList.vue +++ b/src/views/course/ManageList.vue @@ -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;