|
@@ -819,7 +819,7 @@ export default {
|
|
|
activeStudentList: [],
|
|
|
classList: [],
|
|
|
appoint: false,
|
|
|
- activeSoundList:[]
|
|
|
+ activeSoundList: [],
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -941,7 +941,7 @@ export default {
|
|
|
createClass(obj).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("创建成功");
|
|
|
- this.resetClassFrom()
|
|
|
+ this.resetClassFrom();
|
|
|
this.getList();
|
|
|
this.newClassVisible = false;
|
|
|
}
|
|
@@ -960,7 +960,7 @@ export default {
|
|
|
teaching: [],
|
|
|
memo: [],
|
|
|
};
|
|
|
- this.changeMemo([])
|
|
|
+ this.changeMemo([]);
|
|
|
},
|
|
|
removeStudent(item) {
|
|
|
removeStudents({
|
|
@@ -1156,7 +1156,7 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("创建成功");
|
|
|
this.getList();
|
|
|
- this.resetClassFrom()
|
|
|
+ this.resetClassFrom();
|
|
|
this.studentVisible = false;
|
|
|
this.newClassVisible = false;
|
|
|
}
|
|
@@ -1434,20 +1434,17 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- if( this.activeType == 'HIGH' || this.activeType=='HIGH_ONLINE'){
|
|
|
- this.getNoClassStudent(row.type,row.memo);
|
|
|
- let arr = row.memo.split(',')
|
|
|
- console.log(arr)
|
|
|
- this.activeSoundList = this.soundList.filter(sound=>{
|
|
|
- return arr.indexOf(sound.id+'') != -1
|
|
|
- })
|
|
|
- console.log(this.activeSoundList)
|
|
|
- }else{
|
|
|
- this.activeSoundList = this.soundList
|
|
|
+ if (this.activeType == "HIGH" || this.activeType == "HIGH_ONLINE") {
|
|
|
+ this.getNoClassStudent(row.type, row.memo);
|
|
|
+ let arr = row.memo.split(",");
|
|
|
+
|
|
|
+ this.activeSoundList = this.soundList.filter((sound) => {
|
|
|
+ return arr.indexOf(sound.id + "") != -1;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.activeSoundList = this.soundList;
|
|
|
this.getNoClassStudent(row.type);
|
|
|
- console.log(this.activeSoundList)
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
// 排课开始
|
|
|
arrangeStart() {
|
|
@@ -1614,13 +1611,13 @@ export default {
|
|
|
];
|
|
|
},
|
|
|
chioseHightype(val) {
|
|
|
- this.$set(this.newClassForm, "subjectIdList", []);
|
|
|
- this.newClassForm.subjectId = "";
|
|
|
+ this.changeMemo([]);
|
|
|
if (val == "HIGH_ONLINE") {
|
|
|
this.newClassForm.teaching = [];
|
|
|
- } else {
|
|
|
- this.newClassForm.memo = [];
|
|
|
}
|
|
|
+ this.newClassForm.subjectId = "";
|
|
|
+ this.$set(this.newClassForm, "subjectIdList", []);
|
|
|
+ this.$set(this.newClassForm, "memo", []);
|
|
|
},
|
|
|
lookDeatil(row) {
|
|
|
console.log(row);
|
|
@@ -1756,7 +1753,7 @@ export default {
|
|
|
teaching: null,
|
|
|
memo: [],
|
|
|
};
|
|
|
- this.resetClassFrom()
|
|
|
+ this.resetClassFrom();
|
|
|
}
|
|
|
},
|
|
|
studentVisible(val) {
|