This commit is contained in:
yanran200730
2022-10-18 16:40:15 +08:00
parent e6cebd42b3
commit 5360102236
3 changed files with 25 additions and 3 deletions

View File

@@ -33,7 +33,7 @@
<ai-import :instance="instance" :dict="dict" type="appepidemicpreventiondatamatch" name="数据比对" @success="getList()">
<el-button icon="iconfont iconImport" type="primary">导入</el-button>
</ai-import>
<ai-download :instance="instance" url="/app/appepidemicpreventiondatamatch/export" :params="search" fileName="数据比对" :disabled="tableData.length == 0">
<ai-download :instance="instance" url="/app/appepidemicpreventiondatamatch/export" :params="params" fileName="数据比对" :disabled="tableData.length == 0">
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
</ai-download>
</template>
@@ -131,6 +131,17 @@
}
},
computed: {
params () {
return {
...this.search,
arriveAreaId: this.search.arriveAreaId,
queryBeginTime: this.search.queryBeginTime ? this.search.queryBeginTime + ' 00:00:00' : '',
queryEndTime: this.search.queryEndTime ? this.search.queryEndTime + ' 23:59:59' : ''
}
}
},
created () {
this.loading = true