调整检测计划导入、导出功能适应二楼装备
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user