| | |
| | | type: 'error' |
| | | }) |
| | | return Promise.reject(new Error(msg)) |
| | | } else if (code !== 201 && code !== 200) { |
| | | } else if (code !== 201 && code !== 200&& code !== 204) { |
| | | ElNotification.error({ |
| | | title: msg |
| | | }) |
| | |
| | | service.get('common/getDownloadName',{params}).then(async(data :any)=>{ |
| | | if (data.code === 200) { |
| | | let newVar = hashMap.get(exportKey); |
| | | console.log(newVar); |
| | | if (newVar){ |
| | | if(data.data ==-1){ |
| | | ElMessage({message: '导出异常', type: 'success'}) |
| | | //ElMessage({message: '导出异常', type: 'success'}) |
| | | }else{ |
| | | let msg = data.data; |
| | | window.location.href = baseUrl + "/common/download?fileName=" + encodeURI(msg) + "&delete=" + true; |
| | |
| | | }else{ |
| | | setTimeout(()=>{ |
| | | getDownloadName(exportKey); |
| | | },3000) |
| | | },1000) |
| | | } |
| | | }) |
| | | } |