downloadexcel (data) { // 下载excel文件
//data接口返回的流数据
if (!data) {
return
}
let url = window.URL.createObjectURL(new Blob([data]))
let link = document.createElement('a')
link.style.display = 'none'
link.href = url
link.setAttribute('download', decodeURIComponent('fileName'))
document.body.appendChild(link)
link.click()
},