|
@@ -188,7 +188,7 @@
|
|
|
:isOnlyChangeUser="isOnlyChangeUser"
|
|
|
:activeType="activeType"
|
|
|
@changeActiveChioseSound="changeActiveChioseSound"
|
|
|
- @searchStudent="searchStudent"
|
|
|
+ @searchStudent="searchStudent(activeClass)"
|
|
|
@submited="studentSubmited"
|
|
|
@close="studentVisible = false"
|
|
|
/>
|
|
@@ -798,7 +798,7 @@ export default {
|
|
|
this.activeChioseSound = null;
|
|
|
this.getNoClassStudent(type);
|
|
|
},
|
|
|
- searchStudent() {
|
|
|
+ searchStudent(classGroupId) {
|
|
|
console.log(this.activeChioseSound);
|
|
|
// 搜索学生
|
|
|
// 根据声部id 乐团id搜索学生
|
|
@@ -812,7 +812,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- this.getNoClassStudent(this.activeType, this.activeChioseSound);
|
|
|
+ this.getNoClassStudent(this.activeType, this.activeChioseSound,classGroupId);
|
|
|
}
|
|
|
},
|
|
|
// 选择学生的方法修改
|
|
@@ -897,7 +897,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- this.getNoClassStudent(row.type);
|
|
|
+ this.getNoClassStudent(row.type,null,row.id);
|
|
|
},
|
|
|
// 班级调整
|
|
|
classAdjustment(row) {
|
|
@@ -922,11 +922,12 @@ export default {
|
|
|
}
|
|
|
this.infoVisible = true;
|
|
|
},
|
|
|
- async getNoClassStudent(type, actualSubjectId) {
|
|
|
+ async getNoClassStudent(type, actualSubjectId,classGroupId) {
|
|
|
const params = {
|
|
|
musicGroupId: this.teamid,
|
|
|
type,
|
|
|
actualSubjectId,
|
|
|
+ classGroupId
|
|
|
};
|
|
|
await getMusicGroupStuNoClassType(params).then((res) => {
|
|
|
if (res.code == 200) {
|
|
@@ -959,7 +960,7 @@ export default {
|
|
|
this.activeListStudent = res.data;
|
|
|
}
|
|
|
});
|
|
|
- this.getNoClassStudent(this.activeType);
|
|
|
+ this.getNoClassStudent(this.activeType,null,this.activeClass);
|
|
|
// getNoClassStudentAll({ musicGroupId: this.teamid }).then(res => {
|
|
|
// if (res.code == 200) {
|
|
|
// this.$message.success('删除成功');
|