Browse Source

[FIX] review 时间选择限制

Kunduin 7 năm trước cách đây
mục cha
commit
aeaedaed73
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  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: {