导出下载后台excel表格
exportData(){ axios.post(basePath+'/apply/audit/exportCaptcha.do',this.form, { responseType:'blob' // 设置响应数据类型 }) .then(res=>{ if (res.status == 200) { let url = window.URL.createObjectURL(new Blob([res.data])) let link= document.createElement('a') link.style.display='none' link.href=url link.setAttribute('download', '签到码审核列表.xls') // 自定义下载文件名(如exemple.txt) document.body.appendChild(link) link.click() } }) },
不停学习,热爱是源源不断的动力。