[参数项列表] 导出
This commit is contained in:
@@ -113,6 +113,21 @@ export function downFile(url,parameter){
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载文件 用于excel导出 -- post
|
||||
* @param url
|
||||
* @param parameter
|
||||
* @returns {*}
|
||||
*/
|
||||
export function downFilePost(url,parameter){
|
||||
return axios({
|
||||
url: url,
|
||||
data: parameter,
|
||||
method:'post' ,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载文件
|
||||
* @param url 文件路径
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||
import { getAction, postAction, downloadFile, deleteAction, downFilePost } from '@/api/manage'
|
||||
import addModel from './components/addModel'
|
||||
import axios from 'axios'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
@@ -191,6 +191,19 @@ export default {
|
||||
// },
|
||||
//导出
|
||||
handleExport() {
|
||||
// let _tt = {
|
||||
// pageNo: this.pageNo,
|
||||
// pageSize: this.pageSize,
|
||||
// paramsTemplateId: this.$route.query.id,
|
||||
// ...this.queryParam,
|
||||
// ids: this.selectedRowKeys.join(','),
|
||||
// // exportName: '参数项列表.xlsx'
|
||||
// }
|
||||
// let _xx = JSON.stringify(_tt)
|
||||
// let _yy = {
|
||||
// paramsInfoVO : _xx
|
||||
// }
|
||||
// downloadFile('params/paramsInfo/exportParamsInfoZip', '参数项列表.xlsx', _yy, this.Deselect)
|
||||
let _tt = {
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
@@ -199,11 +212,7 @@ export default {
|
||||
ids: this.selectedRowKeys.join(','),
|
||||
// exportName: '参数项列表.xlsx'
|
||||
}
|
||||
let _xx = JSON.stringify(_tt)
|
||||
let _yy = {
|
||||
paramsInfoVO : _xx
|
||||
}
|
||||
downloadFile('document/bussDocumentLibraryEO/exportExcel', '参数项列表.xlsx', _yy, this.Deselect)
|
||||
downFilePost('params/paramsInfo/exportParamsInfoZip',{ paramsInfoVO : _tt }, this.Deselect)
|
||||
},
|
||||
//下载模板
|
||||
handleModule() {
|
||||
|
||||
Reference in New Issue
Block a user