[参数项列表] 模板下载
This commit is contained in:
@@ -44,6 +44,10 @@
|
|||||||
<a-icon type="plus"/>
|
<a-icon type="plus"/>
|
||||||
{{$t('add')}}
|
{{$t('add')}}
|
||||||
</div>
|
</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'">
|
<div @click="handleModule" class="operator-text" v-has="'document:exportTemplate'">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
{{$t('templateDownload')}}
|
{{$t('templateDownload')}}
|
||||||
@@ -168,6 +172,17 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
handleModule() {
|
||||||
downloadFile('params/paramsInfo/exportTemplate', '参数项列表.xls', {})
|
downloadFile('params/paramsInfo/exportTemplate', '参数项列表.xls', {})
|
||||||
|
|||||||
Reference in New Issue
Block a user