|
...
|
...
|
@@ -119,6 +119,7 @@ |
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import { downFile } from '@/api/manage'
|
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
|
|
import TblTradePriceInquiryModal from './modules/TblTradePriceInquiryModal'
|
|
...
|
...
|
@@ -230,6 +231,25 @@ |
|
|
|
},
|
|
|
|
downloadBidFile(record) {
|
|
|
|
console.log('下载文件', record)
|
|
|
|
downFile(this.url.exportXlsUrl, record).then((data) => {
|
|
|
|
if (!data) {
|
|
|
|
this.$message.warning('文件下载失败')
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
|
|
|
window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), '投标文件' + '.xls')
|
|
|
|
} else {
|
|
|
|
let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
|
|
|
|
let link = document.createElement('a')
|
|
|
|
link.style.display = 'none'
|
|
|
|
link.href = url
|
|
|
|
link.setAttribute('download', '投标文件' + '.xls')
|
|
|
|
document.body.appendChild(link)
|
|
|
|
link.click()
|
|
|
|
document.body.removeChild(link) // 下载完成移除元素
|
|
|
|
window.URL.revokeObjectURL(url) // 释放掉blob对象
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
handleExpand(expanded, record) {
|
...
|
...
|
|