下载文件流的文件
this.$http({
method: 'POST',
url: '接口路径',
data: state1,
responseType: 'blob'
}).then(res => {
console.log(res)
const date_ = this.formatDate__(+new Date(), 'YYYYMMDD')
const fileName = '子项导出' + date_
const elink = document.createElement('a')
elink.download = fileName
elink.style.display = 'none'
elink.href = URL.createObjectURL(res)
document.body.appendChild(elink)
elink.click()
URL.revokeObjectURL(elink.href)
document.body.removeChild(elink)
}).finally(_ => {
this.exportTableLoading = false
})
},