From 49cdc0884a9a4381cd968cffff65e2a332bc675a Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期六, 24 十月 2026 21:05:29 +0800
Subject: [PATCH] feat(cnas-search): 1.标准查新模块 2.印章使用记录
---
src/views/structural/sealManage/usageLedger/index.vue | 44 +++++++++++++-------------------------------
1 files changed, 13 insertions(+), 31 deletions(-)
diff --git a/src/views/structural/sealManage/usageLedger/index.vue b/src/views/structural/sealManage/usageLedger/index.vue
index 665d47c..bbd2bf1 100644
--- a/src/views/structural/sealManage/usageLedger/index.vue
+++ b/src/views/structural/sealManage/usageLedger/index.vue
@@ -35,18 +35,10 @@
v-hasPermi="['structural:sealUsageLedger:export']"
type="primary"
size="small"
- :disabled="selection.length === 0 || exportLoading || submitLoading"
- :loading="selectedExportLoading"
- @click="exportSelected"
- >鍕鹃�夊鍑�</el-button>
- <el-button
- v-hasPermi="['structural:sealUsageLedger:export']"
- type="primary"
- size="small"
:disabled="exportLoading || submitLoading"
- :loading="filteredExportLoading"
- @click="exportFiltered"
- >鎸夋潯浠跺鍑�</el-button>
+ :loading="exportLoading"
+ @click="exportLedger"
+ >瀵煎嚭</el-button>
</div>
<lims-table
@@ -125,8 +117,7 @@
tableData: [],
selection: [],
tableLoading: false,
- selectedExportLoading: false,
- filteredExportLoading: false,
+ exportLoading: false,
copiesDialogVisible: false,
submitLoading: false,
copiesForm: { id: null, reportCode: '', copies: 1, version: 0 },
@@ -144,11 +135,6 @@
{ label: '浠芥暟', prop: 'copies', dataType: 'slot', slot: 'copies', width: '120px' },
{ label: '鐢ㄥ嵃浜虹瀛�', prop: 'useUserName', width: '140px' }
]
- }
- },
- computed: {
- exportLoading() {
- return this.selectedExportLoading || this.filteredExportLoading
}
},
mounted() {
@@ -221,19 +207,15 @@
})
})
},
- exportSelected() {
- if (!this.selection.length) {
- this.$message.warning('璇烽�夋嫨瑕佸鍑虹殑璁板綍')
- return
- }
- this.selectedExportLoading = true
- this.downloadWord({ mode: 'selected', ids: this.selection.map(item => item.id) })
- .finally(() => { this.selectedExportLoading = false })
- },
- exportFiltered() {
- this.filteredExportLoading = true
- this.downloadWord({ mode: 'filtered', query: this.buildQuery() })
- .finally(() => { this.filteredExportLoading = false })
+ exportLedger() {
+ if (this.exportLoading || this.submitLoading) return
+ const payload = this.selection.length
+ ? { mode: 'selected', ids: this.selection.map(item => item.id) }
+ : { mode: 'filtered', query: this.buildQuery() }
+ this.exportLoading = true
+ this.downloadWord(payload)
+ .catch(() => {})
+ .finally(() => { this.exportLoading = false })
},
downloadWord(payload) {
return exportSealUsageLedger(payload).then(async data => {
--
Gitblit v1.9.3