困难帮扶阅览增加导出附件功能(分工会审核通后才能导出)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user