Commit bb3fcb8d authored by danfuman's avatar danfuman

修改

parent 54681fb2
......@@ -76,6 +76,14 @@ export function bidPage(data) {
data: data
})
}
// 集团业绩导出
export function exportWinBid(data) {
return request({
url: '/combine/info/export/win/bid',
method: 'post',
data: data
})
}
// 集团招标导出
export function exportBid(data) {
return request({
......
......@@ -53,7 +53,7 @@
<script>
import mixin from '../../party-a/mixins/mixin'
import {businessList} from '@/api/detail/groupAccount/groupAccount'
import {businessList,exportWinBid} from '@/api/detail/groupAccount/groupAccount'
import dataRegion from '@/assets/json/dataRegion1'
import { getDictType } from '@/api/main'
export default {
......@@ -271,7 +271,20 @@
this.dataEXCEL.pageSize=this.tableDataTotal;
}
delete this.dataEXCEL.pageNum
this.$download.exportByPost('/combine/info/export/win/bid',this.dataEXCEL,'集团中标.xlsx');
//exportWinBid
exportWinBid(this.dataEXCEL).then(res=>{
console.log(res.data)
if(res.code === 200){
this.downloadFile(res.data.originalName,res.data.url)
}
})
// this.$download.exportByPost('/combine/info/export/win/bid',this.dataEXCEL,'集团中标.xlsx');
},
downloadFile(fileName,fileUrl) {
const link = document.createElement('a');
link.href = fileUrl;
link.setAttribute('download', fileName);
link.click();
},
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment