|
@@ -75,7 +75,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import YearMonthSelect from "@/components/year-month-select";
|
|
import YearMonthSelect from "@/components/year-month-select";
|
|
|
import UploadExcelDialog from "@/components/upload-excel-dialog";
|
|
import UploadExcelDialog from "@/components/upload-excel-dialog";
|
|
|
-import {exportBlob} from "@/api/common";
|
|
|
|
|
|
|
+import {exportBloByPost} from "@/api/common";
|
|
|
import {getToken} from "@/util/auth";
|
|
import {getToken} from "@/util/auth";
|
|
|
import {downloadXls} from "@/util/util";
|
|
import {downloadXls} from "@/util/util";
|
|
|
import projectSelect from "@/components/project-select";
|
|
import projectSelect from "@/components/project-select";
|
|
@@ -147,7 +147,7 @@ export default window.$crudCommon({
|
|
|
this.getList(this.page);
|
|
this.getList(this.page);
|
|
|
},
|
|
},
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
- exportBlob(`/api/kd-scientific/goods/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
|
|
|
|
+ exportBloByPost(`/api/kd-scientific/goods/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
downloadXls(res.data, `${this.pageTitle}.xlsx`);
|
|
downloadXls(res.data, `${this.pageTitle}.xlsx`);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|