|
@@ -708,11 +708,16 @@ export default {
|
|
|
res.tmdinfos.forEach(item => {
|
|
|
item.type = 'TMID'
|
|
|
})
|
|
|
+ //处理醍摩豆Id顺序
|
|
|
res.tmdinfos.sort((a, b) => {
|
|
|
return slist.tmids.indexOf(a.id) - slist.tmids.indexOf(b.id)
|
|
|
})
|
|
|
- this.$set(this.courseListShow[this.curCusIndex].schedule[this.curClassIndex], 'allStu', res.stus.concat(res.tmdinfos))
|
|
|
- this.$set(this.courseListShow[this.curCusIndex].schedule[this.curClassIndex], 'fullStu', true)
|
|
|
+ console.log('更新学生数据')
|
|
|
+ let originIndex = this.courseListShow[this.curCusIndex].schedule.findIndex(item=>{
|
|
|
+ return item.stulist == schedule.stulist
|
|
|
+ })
|
|
|
+ this.$set(this.courseListShow[this.curCusIndex].schedule[originIndex], 'allStu', res.stus.concat(res.tmdinfos))
|
|
|
+ this.$set(this.courseListShow[this.curCusIndex].schedule[originIndex], 'fullStu', true)
|
|
|
}
|
|
|
).finally(() => {
|
|
|
setTimeout(() => {
|