|
@@ -708,7 +708,7 @@ export default {
|
|
|
res.tmdinfos.forEach(item => {
|
|
|
item.type = 'TMID'
|
|
|
})
|
|
|
- res.tmdinfos.sort((a,b)=>{
|
|
|
+ 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))
|
|
@@ -1245,6 +1245,16 @@ export default {
|
|
|
}).then(
|
|
|
res => {
|
|
|
if (!res.error) {
|
|
|
+ //删除原始数据
|
|
|
+ let cusId = this.courseListShow[this.curCusIndex].id
|
|
|
+ let originIndex = this.courseList.findIndex(item => {
|
|
|
+ return item.id == cusId
|
|
|
+ })
|
|
|
+ if (originIndex > -1) {
|
|
|
+ this.courseList.splice(originIndex, 1)
|
|
|
+ }
|
|
|
+
|
|
|
+ // 删除列表数据
|
|
|
let index = this.curCusIndex
|
|
|
this.curCusIndex = 0
|
|
|
this.courseListShow.splice(index, 1)
|