文件下载处理方法
downloadFile(url,documentName,params) {
axios({
url: url,
method: "get",
responseType:'blob',
params: params
}).then(res=>{
var url = window.URL.createObjectURL(new Blob([res]));
var a = document.createElement('a');
a.setAttribute('href',url);
a.setAttribute('download',documentName)
a.click();
})
},