Răsfoiți Sursa

export scoreStatistics

deason 4 ani în urmă
părinte
comite
f3457f45ff
1 a modificat fișierele cu 21 adăugiri și 2 ștergeri
  1. 21 2
      src/modules/oe/views/scoreStatistics.vue

+ 21 - 2
src/modules/oe/views/scoreStatistics.vue

@@ -234,6 +234,7 @@ export default {
       dialogExportTypeVisible: false,
       exportLoading: false,
       form: {
+        rootOrgId: null,
         examRecordDataId: null,
         hasStranger: null,
         courseId: null,
@@ -368,14 +369,32 @@ export default {
               type: "warning"
             }).then(() => {
               this.dialogExportTypeVisible = false;
-              this._exportData();
+              // this._exportData();
+              this.asyncExportData();
             });
           } else {
             this.dialogExportTypeVisible = false;
-            this._exportData();
+            // this._exportData();
+            this.asyncExportData();
           }
         });
     },
+    asyncExportData() {
+      this.form.rootOrgId = this.user.rootOrgId;
+      let url = "/api/ecs_oe_admin/exam/score/statistic/list/export/async";
+      this.$http
+        .get(url, {
+          params: {
+            query: this.form
+          }
+        })
+        .then(() => {
+          this.$notify({
+            type: "success",
+            message: "正在后台导出中,请稍后到“导出任务列表”中下载!"
+          });
+        });
+    },
     _exportData() {
       this.exportLoading = true;
       this.$http