lrf402788946 4 anos atrás
pai
commit
ceb75519e4
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/views/classes/parts/class-table.vue

+ 2 - 2
src/views/classes/parts/class-table.vue

@@ -355,6 +355,8 @@ export default {
     async getOtherList() {
       let res = await this.getSubject();
       if (this.$checkRes(res)) this.$set(this, `subjectList`, 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() {
       let arr = this.oLessonList.filter(item => item.teaid != null);
@@ -362,8 +364,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() {