Commit 6f71145e authored by chenfenglei's avatar chenfenglei

切换班级优化

parent 501da4b8
......@@ -534,8 +534,9 @@
methods:{
handleItemChange(value){
getClassListApi(value[0],{limit:99999}).then(res=>{
console.log(res.list)
res.list.forEach(i=>{
i.title = i.teacher_name
i.title = i.class_name
});
this.changeClassObj.periods_list.find(i=>{return i.id === value[0]}).children = res.list
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment