this.request({
method: 'GET',
url: url,
params: conditionObject,
responseType: 'blob'
}).then(res => {
let blob = new Blob([res.data], {type: '.xlsx'})
let url = window.URL.createObjectURL(blob)
console.log(url)
// window.location.href = url
let aTag = document.createElement('a')
let urldd = window.URL.createObjectURL(
new Blob([url], {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'})
)
aTag.href = urldd
aTag.download = 'fileName'
aTag.click()
window.URL.revokeObjectURL(urldd)
this.fileData = blob
}).catch(err => {
console.log(err)
})
11-19
3518
06-25
768
09-22