|
@@ -65,6 +65,7 @@
|
|
|
filterable
|
|
|
clearable
|
|
|
:disabled="!leftForm.teacher || !leftForm.educationalTeacherId"
|
|
|
+ @change="onClassChange"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item,index) in classOrganList"
|
|
@@ -1228,6 +1229,9 @@ export default {
|
|
|
let educationalTeacherId = leftForm.educationalTeacherId ? leftForm.educationalTeacherId : null
|
|
|
leftForm.classOrganId = null // 重置课程分部数据
|
|
|
this.classOrganList = []
|
|
|
+ // 初始化上课学生
|
|
|
+ this.studentList = []
|
|
|
+ this.rightForm.students = []
|
|
|
if(!teacher || !educationalTeacherId) { // 如果没有选择指导老师和教务老师则不请求
|
|
|
return
|
|
|
}
|
|
@@ -1238,6 +1242,10 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ onClassChange() { // 课程分部改变时
|
|
|
+ this.studentList = []
|
|
|
+ this.rightForm.students = []
|
|
|
+ },
|
|
|
onCancel() {
|
|
|
this.$router.push({
|
|
|
path: "/business/vipList",
|