this_.$axios.post(path, parameter, { responseType: "blob" }).then((res) => { if (res.data.status === 500) { this_.eLoadiing = false reject(false) } else { const content = res.data; const blob = new Blob([content]); //构造一个blob对象来处理数据 const fileName = `${name}.xlsx`; if ("download" in document.createElement("a")) { //支持a标签download的浏览器 const link = document.createElement("a"); //创建a标签 link.download = fileName; //a标签添加属性 link.style.display = "none"; link.href = URL.createObjectURL(blob); document.body.appendChild(link); link.click(); //执行下载 URL.revokeObjectURL(link.href); //释放url document.body.removeChild(link); //释放标签 } this_.eLoadiing = false this_.checkList = [] initTable() resolve(true) } }).catch(e => { this_.eLoadiing = false this_.$message.error(e) })