|
|
@@ -163,6 +163,7 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
+ allExport,
|
|
|
listRegisterBook,
|
|
|
selectExport,
|
|
|
} from "@/api/registerbook/registerBook.js";
|
|
|
@@ -297,11 +298,13 @@ export default {
|
|
|
this.single = selection.length !== 1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
+ //导出全部
|
|
|
async exportAll() {
|
|
|
- //this.search.exportType = 0;
|
|
|
- //await cutExport(this.search);
|
|
|
+ this.queryParams.exportType = 0;
|
|
|
+ await allExport(this.queryParams)
|
|
|
this.$message.success("导出成功,请稍后查看导出结果!");
|
|
|
},
|
|
|
+ //导出勾选
|
|
|
async exportSelected() {
|
|
|
if (!this.ids || this.ids.length == 0) {
|
|
|
this.$message.error('请先选择需要导出的文件!');
|
|
|
@@ -309,7 +312,6 @@ export default {
|
|
|
}
|
|
|
let pdfIdList = this.ids;
|
|
|
this.queryParams.exportType = 1;
|
|
|
- let fileName = `登记簿-${dayjs(new Date()).format("YYYYMMDD")}.zip`;
|
|
|
await selectExport({...this.queryParams, pdfIdList},
|
|
|
`${this.selectedOrgName}_${this.$tab.getCurrentTabName()}_${dayjs().format("YYYYMMDD")}.zip`);
|
|
|
|