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