|
@@ -124,7 +124,7 @@ import { genderType } from "@/constant";
|
|
|
import { updateClassGroupStudents } from '../../api'
|
|
|
import { uniqBy } from 'lodash'
|
|
|
export default {
|
|
|
- props: ["studentList", "soundList", "activeType", 'activeListStudent', 'isOnlyChangeUser', 'classGroupId', 'type', 'teacherList', 'cooperationList'],
|
|
|
+ props: ["studentList", "soundList", "activeType", 'activeListStudent', 'isOnlyChangeUser', 'classGroupId', 'type', 'teacherList', 'cooperationList', 'isStudentRemove'],
|
|
|
computed: {
|
|
|
data() {
|
|
|
return uniqBy([...this.studentList, ...this.activeListStudent], 'userId')
|
|
@@ -146,7 +146,8 @@ export default {
|
|
|
return !this.isOnlyChangeUser && this.activeType != 'MUSIC_NETWORK'
|
|
|
},
|
|
|
canDelUser() {
|
|
|
- return this.$route.query.type !== 'resetTeam' || !this.isOnlyChangeUser
|
|
|
+ // console.log(this.isStudentRemove)
|
|
|
+ return this.$route.query.type !== 'resetTeam' || !this.isOnlyChangeUser || this.isStudentRemove
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
@@ -203,7 +204,7 @@ export default {
|
|
|
if (!this.isOnlyChangeUser && this.activeType == 'HIGH_ONLINE' && (this.seleched.length < 3 || this.seleched.length > 5)) {
|
|
|
return this.$message.error('线上技能班必须为3-5人')
|
|
|
}
|
|
|
- if (this.seleched.length < 1) {
|
|
|
+ if (this.seleched.length < 1 && !this.isStudentRemove) {
|
|
|
return this.$message.error('请至少选择一名学生')
|
|
|
}
|
|
|
if (this.activeType == 'MUSIC_NETWORK' && this.seleched.length > 1) {
|