[参数项列表] 模板下载

This commit is contained in:
zhaomeijing
2022-04-29 10:31:05 +08:00
parent 4f18e1a1a5
commit 644f6031c1
@@ -44,6 +44,10 @@
<a-icon type="plus"/>
{{$t('add')}}
</div>
<div @click="handleExport" class="operator-text" v-has="'document:exportExcel'">
<a-icon type="export" :rotate="-90"/>
{{$t('dataExport')}}
</div>
<div @click="handleModule" class="operator-text" v-has="'document:exportTemplate'">
<a-icon type="download"/>
{{$t('templateDownload')}}
@@ -168,6 +172,17 @@ export default {
this.getList()
},
methods: {
//导出
handleExport() {
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
paramsTemplateId: this.$route.query.id,
...this.queryParam,
id: this.selectedRowKeys.join(',')
}
postAction('params/paramsInfo/exportParamsInfoZip', {exportName: '参数项列表.xls'}, query, this.Deselect)
},
//下载模板
handleModule() {
downloadFile('params/paramsInfo/exportTemplate', '参数项列表.xls', {})