后端返回格式为PK开头
exportMonitor({ids:idsList}).then((res:any)=>{
const link = document.createElement('a')
let blob = new Blob([res], { type: 'application/vnd.ms-excel' })
link.style.display = 'none'
link.href = URL.createObjectURL(blob)
let time = formatDate(new Date(),'YYYY-mm-dd HH:MM:SS');
link.download = '任务监控' + time + '.xlsx' //下载的文件名
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
})
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有