lrf402788946 4 years ago
parent
commit
b0ecbd2329
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/train-plan/parts/class-table.vue

+ 2 - 2
src/views/train-plan/parts/class-table.vue

@@ -363,6 +363,8 @@ export default {
       if (this.$checkRes(res)) this.$set(this, `subjectList`, res.data);
       // res = await this.getTeacher({ status: '4' });
       // if (this.$checkRes(res)) this.$set(this, `teacherList`, res.data);
+      res = await this.fetch({ model: 'notice', classid: this.classInfo.id, type: '4', planid: this.classInfo.planid, termid: this.classInfo.termid });
+      if (this.$checkRes(res)) this.$set(this, `noticeList`, res.data);
     },
     // 教师列表
     async seachTeacher() {
@@ -371,8 +373,6 @@ export default {
       var ids = NewArr.map(item => item.teaid);
       let res = await this.lessonteafetch(ids);
       if (this.$checkRes(res)) this.$set(this, `teacherList`, res.data);
-      res = await this.fetch({ model: 'notice', classid: this.classInfo.id, type: '4', planid: this.classInfo.planid, termid: this.classInfo.termid });
-      if (this.$checkRes(res)) this.$set(this, `noticeList`, res.data);
     },
     //关闭抽屉
     toClose() {