[参数项列表] 导出
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 文件路径
|
* @param url 文件路径
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
import { getAction, postAction, downloadFile, deleteAction, downFilePost } from '@/api/manage'
|
||||||
import addModel from './components/addModel'
|
import addModel from './components/addModel'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
@@ -191,6 +191,19 @@ export default {
|
|||||||
// },
|
// },
|
||||||
//导出
|
//导出
|
||||||
handleExport() {
|
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 = {
|
let _tt = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
@@ -199,11 +212,7 @@ export default {
|
|||||||
ids: this.selectedRowKeys.join(','),
|
ids: this.selectedRowKeys.join(','),
|
||||||
// exportName: '参数项列表.xlsx'
|
// exportName: '参数项列表.xlsx'
|
||||||
}
|
}
|
||||||
let _xx = JSON.stringify(_tt)
|
downFilePost('params/paramsInfo/exportParamsInfoZip',{ paramsInfoVO : _tt }, this.Deselect)
|
||||||
let _yy = {
|
|
||||||
paramsInfoVO : _xx
|
|
||||||
}
|
|
||||||
downloadFile('document/bussDocumentLibraryEO/exportExcel', '参数项列表.xlsx', _yy, this.Deselect)
|
|
||||||
},
|
},
|
||||||
//下载模板
|
//下载模板
|
||||||
handleModule() {
|
handleModule() {
|
||||||
|
|||||||
Reference in New Issue
Block a user