export const downReport_api = params =>
request({
method: "get",
url: "/api-study/paperDocuments/outDataDocumentReport",
params,
responseType: "blob", // 表明返回服务器返回的数据类型
});
async down() {
let res = await downReport_api({
documentState: "DOCUMENT_VALIDATION",
name: this.form.title,
});
console.log(res);
const blob = new Blob([res.data]);
const a = document.createElement("a");
const URL = window.URL || window.webkitURL;
const herf = URL.createObjectURL(blob);
a.href = herf;
a.download = `报表.xlsx`;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
wi