this.$http({
method: 'post',
url,
data: params,
responseType: 'blob'
}).then( res => {
const blob = new Blob([res.data], { type: res.headers['content-type']})
const urlDownLoad = window.URL.createObjectURL(blob)
const aDom = document.createElement('a')
aDom.href = urlDownLoad
aDom.setAttribute('style', 'display: none')
const fileName = decodeURIComponent(res.headers['content-disposition'].split('=')[1]) || '下载文件'
aDom.setAttribute('download', fileName)
document.body.appendChild(aDom)
aDom.click()
})