From 6b0dacaccba1c5ee2b431a80d44673ec81eb94c8 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 09 三月 2026 13:58:01 +0800
Subject: [PATCH] 加fileUrl路径

---
 src/pages/equipmentManagement/upkeep/detail.vue   |    4 ++--
 src/config.js                                     |    1 +
 src/pages/inspectionUpload/index.vue              |    5 ++---
 src/pages/equipmentManagement/upkeep/maintain.vue |    4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/config.js b/src/config.js
index 093e7fe..5f7940a 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,6 +1,7 @@
 // 搴旂敤鍏ㄥ眬閰嶇疆
 const config = {
   baseUrl: "http://1.15.17.182:9011",
+  fileUrl: "http://1.15.17.182:9010",
   // 搴旂敤淇℃伅
   appInfo: {
     // 搴旂敤鍚嶇О
diff --git a/src/pages/equipmentManagement/upkeep/detail.vue b/src/pages/equipmentManagement/upkeep/detail.vue
index 44ead77..aaf70d0 100644
--- a/src/pages/equipmentManagement/upkeep/detail.vue
+++ b/src/pages/equipmentManagement/upkeep/detail.vue
@@ -199,9 +199,9 @@
     const uploadsIndex = url.indexOf("uploads");
     if (uploadsIndex !== -1) {
       const relativePath = url.substring(uploadsIndex);
-      return `${config.baseUrl}/${relativePath}`;
+      return `${config.fileUrl}/${relativePath}`;
     }
-    return `${config.baseUrl}/${url}`;
+    return `${config.fileUrl}/${url}`;
   };
 
   // 鍒ゆ柇鏄惁涓哄浘鐗囨枃浠�
diff --git a/src/pages/equipmentManagement/upkeep/maintain.vue b/src/pages/equipmentManagement/upkeep/maintain.vue
index 772881a..f99dcc1 100644
--- a/src/pages/equipmentManagement/upkeep/maintain.vue
+++ b/src/pages/equipmentManagement/upkeep/maintain.vue
@@ -929,9 +929,9 @@
     const uploadsIndex = url.indexOf("uploads");
     if (uploadsIndex !== -1) {
       const relativePath = url.substring(uploadsIndex);
-      return `${config.baseUrl}/${relativePath}`;
+      return `${config.fileUrl}/${relativePath}`;
     }
-    return `${config.baseUrl}/${url}`;
+    return `${config.fileUrl}/${url}`;
   };
 
   // 涓婁紶鎴愬姛澶勭悊
diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index d77e951..7ac9f3d 100644
--- a/src/pages/inspectionUpload/index.vue
+++ b/src/pages/inspectionUpload/index.vue
@@ -281,7 +281,6 @@
                       class="attachment-item"
                       @click="previewAttachment(file)">
                   <view class="attachment-preview-container">
-                    {{formatFileUrl(file.url || file.downloadUrl)}}
                     <image v-if="file.type === 'image' || isImageFile(file)"
                            :src="formatFileUrl(file.url || file.downloadUrl)"
                            class="attachment-preview"
@@ -1599,9 +1598,9 @@
     const uploadsIndex = url.indexOf("uploads");
     if (uploadsIndex !== -1) {
       const relativePath = url.substring(uploadsIndex);
-      return `${config.baseUrl}/${relativePath}`;
+      return `${config.fileUrl}/${relativePath}`;
     }
-    return `${config.baseUrl}/${url}`;
+    return `${config.fileUrl}/${url}`;
   };
   // 鏍煎紡鍖栨枃浠跺ぇ灏�
   const formatFileSize = size => {

--
Gitblit v1.9.3