queryOaScheduleReportsGatherExport(this.date).then(ress => {
//this.date 是你要传的参数
// console.log(ress, 'res');
const link = document.createElement('a');
link.href = window.URL.createObjectURL(new Blob([ress]));
link.download = '导出数据.xlsx';
link.target = '_blank';
link.style.display = 'none';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
})
vue导出
最新推荐文章于 2024-09-13 14:34:15 发布