exportTeamStatistics() { //函数名
//参数
let ite = {
statisticType: 2,
};
exportExcel(ite).then((res) => {
// this.downloadCallback(res, '工人工时统计.xlsx');
console.log(res);
let blob = new Blob([res], {
type: "application/vnd.ms-excel",
});
let url = window.URL.createObjectURL(blob);
let a = document.createElement("a");
a.href = url;
a.download = "班组工时统计.xlsx";
a.click();
// 5.释放这个临时的对象url
window.URL.revokeObjectURL(url);
});
},
导出excel表格
最新推荐文章于 2024-03-21 21:46:08 发布