|
@@ -74,7 +74,7 @@ import { genderType } from "@/constant";
|
|
|
import { updateClassGroupStudents } from '../../api'
|
|
|
import { uniqBy } from 'lodash'
|
|
|
export default {
|
|
|
- props: ["studentList", "soundList", "activeType", 'activeListStudent', 'isOnlyChangeUser', 'classGroupId'],
|
|
|
+ props: ["studentList", "soundList", "activeType", 'activeListStudent', 'isOnlyChangeUser', 'classGroupId', 'type'],
|
|
|
computed: {
|
|
|
data() {
|
|
|
return uniqBy([...this.studentList, ...this.activeListStudent], 'userId').map((item) => ({
|
|
@@ -128,6 +128,7 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
change(val) {
|
|
|
+ this.seleched = []
|
|
|
this.$listeners.changeActiveChioseSound(val)
|
|
|
this.$listeners.searchStudent()
|
|
|
},
|
|
@@ -140,7 +141,7 @@ export default {
|
|
|
}
|
|
|
this.$refs.form.validate(async valid => {
|
|
|
if (valid) {
|
|
|
- if (this.isOnlyChangeUser) {
|
|
|
+ if (this.isOnlyChangeUser && this.type !== 'change') {
|
|
|
try {
|
|
|
await updateClassGroupStudents({
|
|
|
classGroupId: this.classGroupId,
|
|
@@ -191,6 +192,9 @@ export default {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
+/deep/ .el-checkbox-group{
|
|
|
+ padding-bottom: 40px;
|
|
|
+}
|
|
|
/deep/ .line {
|
|
|
width: 220px;
|
|
|
display: flex;
|