|
@@ -56,7 +56,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { getList as getSubjectTreeList } from "@/api/basicResource/subjectSetting";
|
|
import { getList as getSubjectTreeList } from "@/api/basicResource/subjectSetting";
|
|
|
-import {exportBloByPost} from "@/api/common";
|
|
|
|
|
|
|
+import {exportBlob} from "@/api/common";
|
|
|
import UploadExcelDialog from "@/components/upload-excel-dialog";
|
|
import UploadExcelDialog from "@/components/upload-excel-dialog";
|
|
|
import {getToken} from "@/util/auth";
|
|
import {getToken} from "@/util/auth";
|
|
|
import {downloadXls} from "@/util/util";
|
|
import {downloadXls} from "@/util/util";
|
|
@@ -77,7 +77,6 @@ export default window.$crudCommon({
|
|
|
this.getMenuData();
|
|
this.getMenuData();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- loadData() {},
|
|
|
|
|
loopData(data, level) {
|
|
loopData(data, level) {
|
|
|
level++;
|
|
level++;
|
|
|
return data.map(item => {
|
|
return data.map(item => {
|
|
@@ -102,15 +101,14 @@ export default window.$crudCommon({
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
handleImport() {
|
|
handleImport() {
|
|
|
- let excelParams = { yearAndMonth: this.params.yearAndMonth };
|
|
|
|
|
- this.$refs.uploadExcelDialog.open('/api/kd-scientific/technician/import', excelParams);
|
|
|
|
|
|
|
+ this.$refs.uploadExcelDialog.open('/api/kd-scientific/subject/enterprise/import');
|
|
|
},
|
|
},
|
|
|
uploadAfter() {
|
|
uploadAfter() {
|
|
|
this.page.currentPage = 1;
|
|
this.page.currentPage = 1;
|
|
|
this.getList(this.page);
|
|
this.getList(this.page);
|
|
|
},
|
|
},
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
- exportBloByPost(`/api/kd-scientific/technician/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
|
|
|
|
+ exportBlob(`/api/kd-scientific/subject/enterprise/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
downloadXls(res.data, `企业会计科目.xlsx`);
|
|
downloadXls(res.data, `企业会计科目.xlsx`);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|