From f04f9d69cedbc72444bbe3bbefd36cd822b59c8b Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 25 Nov 2025 21:22:21 +0800
Subject: [PATCH] feat: 下载问题

---
 src/page/index/useGlobalWS.js                 |    2 +-
 src/views/job/components/DeviceJobDetails.vue |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/page/index/useGlobalWS.js b/src/page/index/useGlobalWS.js
index 22faf74..009bc8a 100644
--- a/src/page/index/useGlobalWS.js
+++ b/src/page/index/useGlobalWS.js
@@ -30,7 +30,7 @@
 			...downloadProgress.value,
 			[type]: setProgress,
 		})
-		if (status === 'COMPLETED' && ['dpsjzx','dplsrwxq'].includes(type)) {
+		if (status === 'COMPLETED' && ['htsjzx','htlsrwxq'].includes(type)) {
 			const name = `数据中心-${dayjs().format('YYYYMMDDHHmmss')}.zip`
 			const currentUrl = getStore({name: 'downloadUrl'})
 			if (currentUrl === download_url && download_url!== undefined) return
diff --git a/src/views/job/components/DeviceJobDetails.vue b/src/views/job/components/DeviceJobDetails.vue
index cfc623e..69e6e52 100644
--- a/src/views/job/components/DeviceJobDetails.vue
+++ b/src/views/job/components/DeviceJobDetails.vue
@@ -153,7 +153,7 @@
 
 <script setup>
 import PanoramaPopup from '@/components/PanoramaPopup/PanoramaPopup.vue';
-import { getShowImg, getSmallImg, getzsSmallImg,getzsShowImg } from '@/utils/util';
+import { getShowImg, getSmallImg, getzsSmallImg, getzsShowImg, aLinkDownloadUtil } from '@/utils/util';
 import { getaiImagesPageAPI,cancelDownloadApi,getDownloadStatusApi,attachDownload,aiImagesPage} from '@/api/dataCenter/dataCenter';
 import { pxToRem } from '@/utils/rem'
 import JobRelatedEvents from './JobRelatedEvents.vue'
@@ -315,8 +315,8 @@
 	if (!list?.length) return ElMessage.warning('请选择文件')
 	if (list.length === 1) {
 		list.forEach((item, index) => {
-			const suffix = item.url.split('.').pop()
-			aLinkDownloadUtil(item.url, item.nickName + '.' + suffix)
+			const suffix = item.link.split('.').pop()
+			aLinkDownloadUtil(item.link, item.nickName + '.' + suffix)
 		})
 	} else {
 		loadingData = ElLoading.service({ background: 'rgba(0, 0, 0, 0.5)', text: '打包中,请稍等...' })

--
Gitblit v1.9.3