调整检测计划导入、导出功能适应二楼装备

This commit is contained in:
caozehui
2025-02-18 15:58:38 +08:00
parent 7d3e86a5fc
commit 4f622da52c
4 changed files with 25 additions and 20 deletions

View File

@@ -97,6 +97,8 @@ const uploadExcel = async (param: UploadRequestOptions) => {
async function handleImportResponse(res: any) {
console.log(res)
if (res.type === 'application/json') {
const fileReader = new FileReader()
fileReader.onloadend = () => {
@@ -118,7 +120,7 @@ async function handleImportResponse(res: any) {
const url = window.URL.createObjectURL(blob)
const link = document.createElement('a')
link.href = url
link.download = '终端入网检测失败列表'
link.download = '导入失败数据'
document.body.appendChild(link)
link.click()
link.remove()