|  | @@ -158,9 +158,14 @@
 | 
	
		
			
				|  |  |        destroy-on-close
 | 
	
		
			
				|  |  |      >
 | 
	
		
			
				|  |  |        <selectStudent
 | 
	
		
			
				|  |  | +        :activeListStudent="activeListStudent"
 | 
	
		
			
				|  |  |          :studentList="studentList"
 | 
	
		
			
				|  |  |          :soundList="soundList"
 | 
	
		
			
				|  |  | +        :classGroupId="activeClass"
 | 
	
		
			
				|  |  | +        :isOnlyChangeUser="isOnlyChangeUser"
 | 
	
		
			
				|  |  |          :activeType="activeType"
 | 
	
		
			
				|  |  | +        @changeActiveChioseSound="changeActiveChioseSound"
 | 
	
		
			
				|  |  | +        @searchStudent="searchStudent"
 | 
	
		
			
				|  |  |          @submited="studentSubmited"
 | 
	
		
			
				|  |  |          @close="studentVisible = false"
 | 
	
		
			
				|  |  |        />
 | 
	
	
		
			
				|  | @@ -800,6 +805,7 @@ export default {
 | 
	
		
			
				|  |  |        activeMixClass: "", // 选中的合奏班
 | 
	
		
			
				|  |  |        chioseStudent: [], // 勾选的学生信息
 | 
	
		
			
				|  |  |        isNewClass: false, // 是否为新建班级
 | 
	
		
			
				|  |  | +      isOnlyChangeUser: false,
 | 
	
		
			
				|  |  |        isSearch: false, // 是否需要搜索
 | 
	
		
			
				|  |  |        isTemporary: false, // 是否为临时班级
 | 
	
		
			
				|  |  |        className: "", // 班级名称
 | 
	
	
		
			
				|  | @@ -963,8 +969,12 @@ export default {
 | 
	
		
			
				|  |  |        // 助教是从员工表里选
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      studentSubmited(data) {
 | 
	
		
			
				|  |  | -      this.studentSubmitedData = data
 | 
	
		
			
				|  |  | -      this.infoVisible = true
 | 
	
		
			
				|  |  | +      if (!this.isOnlyChangeUser) {
 | 
	
		
			
				|  |  | +        this.studentSubmitedData = data
 | 
	
		
			
				|  |  | +        this.infoVisible = true
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        this.getList()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      recourse (row) {
 | 
	
		
			
				|  |  |        (this.weekList = [
 | 
	
	
		
			
				|  | @@ -980,6 +990,9 @@ export default {
 | 
	
		
			
				|  |  |      addMix () {
 | 
	
		
			
				|  |  |        this.MixVisible = true;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    changeActiveChioseSound(val) {
 | 
	
		
			
				|  |  | +      this.activeChioseSound = val
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      setAssistant (val) {
 | 
	
		
			
				|  |  |        for (let i in val) {
 | 
	
		
			
				|  |  |          if (val[i] == this.teacherForm.coreTeacher) {
 | 
	
	
		
			
				|  | @@ -1010,6 +1023,7 @@ export default {
 | 
	
		
			
				|  |  |        this.studentList = [];
 | 
	
		
			
				|  |  |        this.isNewClass = true;
 | 
	
		
			
				|  |  |        this.studentVisible = true;
 | 
	
		
			
				|  |  | +      this.isOnlyChangeUser = false
 | 
	
		
			
				|  |  |        this.isSearch = true;
 | 
	
		
			
				|  |  |        this.className = "";
 | 
	
		
			
				|  |  |        this.isTemporary = true;
 | 
	
	
		
			
				|  | @@ -1069,6 +1083,7 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 新增班级
 | 
	
		
			
				|  |  |      addNewClass (type) {
 | 
	
		
			
				|  |  | +      this.isOnlyChangeUser = false
 | 
	
		
			
				|  |  |        this.classType = (type === 'NORMAL' ? 2 : 3)
 | 
	
		
			
				|  |  |        /**
 | 
	
		
			
				|  |  |         *      { value: 'NORMAL', label: '单技班' },
 | 
	
	
		
			
				|  | @@ -1090,6 +1105,7 @@ export default {
 | 
	
		
			
				|  |  |        this.getNoClassStudent(type);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      searchStudent () {
 | 
	
		
			
				|  |  | +      console.log(this.activeChioseSound)
 | 
	
		
			
				|  |  |        // 搜索学生
 | 
	
		
			
				|  |  |        // 根据声部id  乐团id搜索学生
 | 
	
		
			
				|  |  |        if (this.activeType == 'SPAN') {
 | 
	
	
		
			
				|  | @@ -1170,6 +1186,7 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 修改班级
 | 
	
		
			
				|  |  |      resetClass (row) {
 | 
	
		
			
				|  |  | +      this.isOnlyChangeUser = true
 | 
	
		
			
				|  |  |        this.isNewClass = false;
 | 
	
		
			
				|  |  |        this.className = row.name;
 | 
	
		
			
				|  |  |        this.studentVisible = true;
 | 
	
	
		
			
				|  | @@ -1238,35 +1255,36 @@ export default {
 | 
	
		
			
				|  |  |              // this.studentList = res.data.concat(this.activeListStudent).filter(item=>{
 | 
	
		
			
				|  |  |              //   return res.data
 | 
	
		
			
				|  |  |              // });
 | 
	
		
			
				|  |  | -            if (this.activeType == "SNAP") {
 | 
	
		
			
				|  |  | -              let idarr2 = [];
 | 
	
		
			
				|  |  | -              let arr3 = res.data
 | 
	
		
			
				|  |  | -              for (let j in this.activeListStudent) {
 | 
	
		
			
				|  |  | -                idarr2.push(this.activeListStudent[j].userId);
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -              this.studentList = arr3.filter(item => {
 | 
	
		
			
				|  |  | -                return (
 | 
	
		
			
				|  |  | -                  idarr2.indexOf(item.userId) === -1
 | 
	
		
			
				|  |  | -                );
 | 
	
		
			
				|  |  | -              });
 | 
	
		
			
				|  |  | -              // let idarr1 = [];
 | 
	
		
			
				|  |  | -              // let idarr2 = [];
 | 
	
		
			
				|  |  | -              // let arr3 = res.data.concat(this.activeListStudent);
 | 
	
		
			
				|  |  | -              // for (let i in res.data) {
 | 
	
		
			
				|  |  | -              //   idarr1.push(res.data[i].userId);
 | 
	
		
			
				|  |  | -              // }
 | 
	
		
			
				|  |  | -              // for (let j in this.activeListStudent) {
 | 
	
		
			
				|  |  | -              //   idarr2.push(this.activeListStudent[j].userId);
 | 
	
		
			
				|  |  | -              // }
 | 
	
		
			
				|  |  | -              // this.studentList = arr3.filter(item => {
 | 
	
		
			
				|  |  | -              //   return (
 | 
	
		
			
				|  |  | -              //     idarr1.indexOf(item.userId) === -1 ||
 | 
	
		
			
				|  |  | -              //     idarr2.indexOf(item.userId) === -1
 | 
	
		
			
				|  |  | -              //   );
 | 
	
		
			
				|  |  | -              // });
 | 
	
		
			
				|  |  | -            } else {
 | 
	
		
			
				|  |  | +            // if (this.activeType == "SNAP") {
 | 
	
		
			
				|  |  | +            //   let idarr2 = [];
 | 
	
		
			
				|  |  | +            //   let arr3 = res.data
 | 
	
		
			
				|  |  | +            //   for (let j in this.activeListStudent) {
 | 
	
		
			
				|  |  | +            //     idarr2.push(this.activeListStudent[j].userId);
 | 
	
		
			
				|  |  | +            //   }
 | 
	
		
			
				|  |  | +            //   this.studentList = arr3.filter(item => {
 | 
	
		
			
				|  |  | +            //     return (
 | 
	
		
			
				|  |  | +            //       idarr2.indexOf(item.userId) === -1
 | 
	
		
			
				|  |  | +            //     );
 | 
	
		
			
				|  |  | +            //   });
 | 
	
		
			
				|  |  | +            //   console.log(params, [...this.studentList])
 | 
	
		
			
				|  |  | +            //   // let idarr1 = [];
 | 
	
		
			
				|  |  | +            //   // let idarr2 = [];
 | 
	
		
			
				|  |  | +            //   // let arr3 = res.data.concat(this.activeListStudent);
 | 
	
		
			
				|  |  | +            //   // for (let i in res.data) {
 | 
	
		
			
				|  |  | +            //   //   idarr1.push(res.data[i].userId);
 | 
	
		
			
				|  |  | +            //   // }
 | 
	
		
			
				|  |  | +            //   // for (let j in this.activeListStudent) {
 | 
	
		
			
				|  |  | +            //   //   idarr2.push(this.activeListStudent[j].userId);
 | 
	
		
			
				|  |  | +            //   // }
 | 
	
		
			
				|  |  | +            //   // this.studentList = arr3.filter(item => {
 | 
	
		
			
				|  |  | +            //   //   return (
 | 
	
		
			
				|  |  | +            //   //     idarr1.indexOf(item.userId) === -1 ||
 | 
	
		
			
				|  |  | +            //   //     idarr2.indexOf(item.userId) === -1
 | 
	
		
			
				|  |  | +            //   //   );
 | 
	
		
			
				|  |  | +            //   // });
 | 
	
		
			
				|  |  | +            // } else {
 | 
	
		
			
				|  |  |                this.studentList = res.data;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +            // }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        );
 |