Răsfoiți Sursa

卷库导出bug修改

zhangjie 4 ani în urmă
părinte
comite
f1506d62e0
1 a modificat fișierele cu 7 adăugiri și 2 ștergeri
  1. 7 2
      src/modules/exam/views/TaskPaperManage.vue

+ 7 - 2
src/modules/exam/views/TaskPaperManage.vue

@@ -311,9 +311,14 @@ export default {
       if (this.loading) return;
 
       this.loading = true;
-      const res = await paperAndCardBatchExport({
+      let datas = {
         ...this.filter
-      }).catch(() => {});
+      }
+      if (this.createTime) {
+        datas.startTime = this.createTime[0];
+        datas.endTime = this.createTime[1];
+      }
+      const res = await paperAndCardBatchExport(datas).catch(() => {});
       this.loading = false;
 
       if (res) {