guhongwei 4 年 前
コミット
0e6f4903c4
1 ファイル変更7 行追加5 行削除
  1. 7 5
      src/views/train-plan/parts/class-table.vue

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

@@ -167,7 +167,7 @@ export default {
         this.$set(this, `dateList`, x);
         arr = this.aData(arr);
         this.$set(this, `lessonList`, arr);
-        this.getTeacherNotice();
+        // this.getTeacherNotice();
       }
     },
     async toSave() {
@@ -451,10 +451,12 @@ export default {
       let word = '';
       if (teaid) {
         const { notified } = this.noticeList;
-        const r = notified.find(f => f.notifiedid == teaid);
-        if (!r) word = '未绑定微信';
-        else {
-          word = r.status == '0' ? '未确认' : '已确认';
+        if (notified) {
+          const r = notified.find(f => f.notifiedid == teaid);
+          if (!r) word = '未绑定微信';
+          else {
+            word = r.status == '0' ? '未确认' : '已确认';
+          }
         }
       }
       return word;