[参数项列表] 模板下载
This commit is contained in:
@@ -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', {})
|
||||
|
||||
Reference in New Issue
Block a user