监测对象增加导出名单

This commit is contained in:
aixianling
2022-08-15 13:52:34 +08:00
parent fc7f522524
commit 82063280f7

View File

@@ -37,13 +37,16 @@
</el-button> </el-button>
</template> </template>
<template #right> <template #right>
<ai-download url="/app/apppreventionreturntopoverty/exportAcquisitionTable" :params="{...search,ids}"
:instance="instance" fileName="导出名单">
<el-button icon="iconfont iconExported">导出名单</el-button>
</ai-download>
<ai-import :instance="instance" name="监测对象" title="导入监测对象" <ai-import :instance="instance" name="监测对象" title="导入监测对象"
suffixName="xlsx" suffixName="xlsx"
url="/app/apppreventionreturntopoverty/downloadTemplate" url="/app/apppreventionreturntopoverty/downloadTemplate"
importUrl="/app/apppreventionreturntopoverty/import" importUrl="/app/apppreventionreturntopoverty/import"
@onSuccess="page.current=1,getTableData()"/> @onSuccess="page.current=1,getTableData()"/>
<ai-download url="/app/apppreventionreturntopoverty/export" :params="{...search,ids}" <ai-download url="/app/apppreventionreturntopoverty/export" :params="{...search,ids}" :instance="instance" fileName="监测对象导出文件"/>
:instance="instance" fileName="监测对象导出文件"/>
</template> </template>
</ai-search-bar> </ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size" <ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@@ -105,7 +108,7 @@ export default {
}, },
data() { data() {
return { return {
search: {status: '',houseType: '', objectType: '', riskType: '', birthStart: '', birthEnd:'',sex: '' }, search: {status: '', houseType: '', objectType: '', riskType: '', birthStart: '', birthEnd: '', sex: ''},
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
ids: [], ids: [],