|
@@ -579,15 +579,22 @@ export default {
|
|
|
// removeStudents({ classGroupId:}).then(res => {
|
|
|
removeStudents({ classGroupId: this.activeClass, userId: item.userId }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
-
|
|
|
-
|
|
|
- getClassAllStudent({ classGroupId: row.id }).then(res => {
|
|
|
+ item.isVisible = false;
|
|
|
+ // 这里刷新 this.studentList this.activeListStudent
|
|
|
+ this.getList(this.activeMixClass);
|
|
|
+ getClassAllStudent({ classGroupId: this.activeClass }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.activeListStudent = res.data.map(item => {
|
|
|
+ this.activeListStudent = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ getNoClassStudentAll({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('删除成功');
|
|
|
+ this.studentList = res.data.map(item => {
|
|
|
item.isVisible = false;
|
|
|
return item;
|
|
|
});
|
|
|
- this.$message.success('删除成功')
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -691,6 +698,7 @@ export default {
|
|
|
let musicGroupId = this.teamid;
|
|
|
let startDate = this.teacherForm.courseTime;
|
|
|
let courseType = this.teacherForm.courseType;
|
|
|
+ let courseTimes = this.teacherForm.courseNum
|
|
|
let students = this.activeListStudent.map(item => {
|
|
|
return item.userId;
|
|
|
})
|
|
@@ -719,6 +727,7 @@ export default {
|
|
|
courseType,
|
|
|
students,
|
|
|
holiday,
|
|
|
+ courseTimes,
|
|
|
courseTimeDtoList: courseList
|
|
|
}
|
|
|
if (type == 1) {
|
|
@@ -727,6 +736,8 @@ export default {
|
|
|
// 提示修改成功
|
|
|
this.$message.success('修改成功')
|
|
|
this.infoVisible = false;
|
|
|
+ this.studentVisible = false;
|
|
|
+ this.getList(this.activeMixClass);
|
|
|
}
|
|
|
})
|
|
|
} else if (type == 2) {
|
|
@@ -735,6 +746,8 @@ export default {
|
|
|
// 修改成功
|
|
|
this.$message.success('修改成功');
|
|
|
this.infoVisible = false;
|
|
|
+ this.studentVisible = false;
|
|
|
+ this.getList(this.activeMixClass);
|
|
|
}
|
|
|
})
|
|
|
}
|