Przeglądaj źródła

Merge branch 'develop' of SEEC-II-FrontEnd-Team/SEEC-II-FrontEnd into master

WuXinyu 7 lat temu
rodzic
commit
3c6325404d
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10 0
      src/views/teacher/Review/index.vue

+ 10 - 0
src/views/teacher/Review/index.vue

@@ -259,6 +259,16 @@ export default {
         this.adjustMaxDate("reviewDdlConfig", newValue);
         this.adjustMaxDate("argueDdlConfig", newValue);
       }
+    },
+    documentHwId(newValue) {
+      if (newValue) {
+        const selectedDoc = this.docHomework.find(
+          doc => String(doc.id) === String(newValue)
+        );
+        if (selectedDoc) {
+          this.startAtConfig.minDate = String(selectedDoc.startAt);
+        }
+      }
     }
   },
   methods: {