Ver Fonte

修复下载

Joe há 4 anos atrás
pai
commit
26a27f01f3
1 ficheiros alterados com 15 adições e 13 exclusões
  1. 15 13
      src/views/overview/Overview_AccountingReport.vue

+ 15 - 13
src/views/overview/Overview_AccountingReport.vue

@@ -558,19 +558,21 @@ export default {
       return sums;
     },
     /** 导出按钮操作 */
-    handleExport(row) {
-      const query = {
-        stationId: row.stationId,
-        classStructureNo: row.classesNo,
-      };
-      this.$confirm("是否确认导出此条记录?", "警告", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      }).then(function () {
-        exportStructure(query);
-      });
-    },
+    handleExport(row) {
+      const query = {
+        stationId: row.stationId,
+        classStructureNo: row.classesNo,
+      };
+      this.$confirm("是否确认导出此条记录?", "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      }).then(function () {
+       return exportStructure(query);
+      }).then((response) => {
+        this.download(response.msg);
+      });
+    },
   },
 };
 </script>