浏览代码

master elective - open student `report-table` - fault tolerance

hare8999@163.com 2 年之前
父节点
当前提交
ae53e755aa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/elective/generation/detail.vue

+ 1 - 1
src/views/elective/generation/detail.vue

@@ -272,7 +272,7 @@ export default {
           activeOpt: this.activeOpt,
           roundGroups: this.prevData.groups,
           models: res.data,
-          activeModels: res.data
+          activeModels: res.data?.filter(g => g.generation <= query.generation) || []
         }
         this.studentTableVisible = true
       }).finally(() => this.loading = false)