困难帮扶阅览增加导出附件功能(分工会审核通后才能导出)

This commit is contained in:
2026-09-07 17:18:11 +08:00
parent 6088cbf4d2
commit facdb5f52a
5 changed files with 241 additions and 0 deletions
@@ -42,6 +42,7 @@ layout("/layouts/platform.html"){
<el-card shadow="never" class="mt10">
<table-tool label="数据列表">
<el-button type="primary" icon="el-icon-download" size="small" @click="exportAttachmentZip">导出附件Zip</el-button>
</table-tool>
<el-table :data="tableData" :size="tableSize" @sort-change="pageOrder"
@@ -113,6 +114,15 @@ layout("/layouts/platform.html"){
'info': INFO
},
methods: {
exportAttachmentZip() {
this.$axios.post(loc() + "/hasExportableAttachment", this.pageForm).then((res) => {
if (res.code === 0 && res.data) {
this.$downLoad(loc() + "/exportAttachmentZip", this.pageForm)
} else {
this.$message.warning("当前筛选范围内没有可导出的附件")
}
})
},
openView(row) {
this.$refs.guava.view(() => {
this.$refs.infoRef.onOpen(row)