소스 검색

修复下载

Joe 4 년 전
부모
커밋
26a27f01f3
1개의 변경된 파일15개의 추가작업 그리고 13개의 파일을 삭제
  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>