|  | @@ -351,7 +351,7 @@
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import { getTeacher, getSubject } from '@/api/buildTeam'
 | 
	
		
			
				|  |  |  import { vipGroupCategory, vipGroupActivityFind, getVipGroupCostCount, createVip } from '@/api/vipSeting'
 | 
	
		
			
				|  |  | -import { getTeachSchool } from '@/api/teacherManager'
 | 
	
		
			
				|  |  | +import { getTeachSchool, getTeacherBySubject } from '@/api/teacherManager'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    data () {
 | 
	
		
			
				|  |  |      return {
 | 
	
	
		
			
				|  | @@ -473,11 +473,7 @@ export default {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |      // 获取所有老师的接口  根据声部id获取老师
 | 
	
		
			
				|  |  | -    getTeacher().then(res => {
 | 
	
		
			
				|  |  | -      if (res.code == 200) {
 | 
	
		
			
				|  |  | -        this.teacherList = res.data;
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -    })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      // 获取课程类型的接口
 | 
	
		
			
				|  |  |      vipGroupCategory({ organId: this.$store.getters.organ }).then(res => {
 | 
	
		
			
				|  |  |        if (res.code == 200) {
 | 
	
	
		
			
				|  | @@ -492,6 +488,11 @@ export default {
 | 
	
		
			
				|  |  |        this.leftForm.teacher = ''
 | 
	
		
			
				|  |  |        this.leftForm.section = ''
 | 
	
		
			
				|  |  |        // 根据科目id获取相应的老师
 | 
	
		
			
				|  |  | +      getTeacherBySubject({ subjecId: val }).then(res => {
 | 
	
		
			
				|  |  | +        if (res.code == 200) {
 | 
	
		
			
				|  |  | +          this.teacherList = res.data;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 选择课程类型
 | 
	
		
			
				|  |  |      changeType (val) {
 |