From 9c377c0a4004deea4c8dc45f5ba8a874b0d59042 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 09 三月 2026 13:44:32 +0800
Subject: [PATCH] fix: web端隐患上报已整改操作完,APP端隐患上报还可以继续整改

---
 src/pages/equipmentManagement/upkeep/detail.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/pages/equipmentManagement/upkeep/detail.vue b/src/pages/equipmentManagement/upkeep/detail.vue
index 3af1809..44ead77 100644
--- a/src/pages/equipmentManagement/upkeep/detail.vue
+++ b/src/pages/equipmentManagement/upkeep/detail.vue
@@ -80,8 +80,7 @@
           <view v-for="(item, index) in sparePartsList"
                 :key="index"
                 class="spare-part-item">
-            <text class="spare-part-name">{{ item.sparePartName || item.name || '-' }}</text>
-            <text class="spare-part-code">{{ item.sparePartCode || item.code || '-' }}</text>
+            <text class="spare-part-name">{{ item || '-' }}</text>
           </view>
         </view>
         <view v-else
@@ -107,7 +106,7 @@
                 class="file-item"
                 @click="previewFile(file)">
             <image v-if="file.type.includes('image')"
-                   :src="file.url"
+                   :src="formatFileUrl(file.url)"
                    class="file-preview"
                    mode="aspectFill" />
             <view v-else
@@ -200,9 +199,9 @@
     const uploadsIndex = url.indexOf("uploads");
     if (uploadsIndex !== -1) {
       const relativePath = url.substring(uploadsIndex);
-      return `${config.baseUrl}/profile/${relativePath}`;
+      return `${config.baseUrl}/${relativePath}`;
     }
-    return `${config.baseUrl}/profile/${url}`;
+    return `${config.baseUrl}/${url}`;
   };
 
   // 鍒ゆ柇鏄惁涓哄浘鐗囨枃浠�
@@ -257,7 +256,7 @@
     detailData.value = data;
     pageId.value = data.id;
     // 澶勭悊澶囦欢鏁版嵁 - 鏀寔澶氱鏁版嵁缁撴瀯
-    sparePartsList.value = data.spareParts || data.sparePartList || [];
+    sparePartsList.value = data.sparePartsNames.split(",") || [];
     // 澶勭悊闄勪欢鏁版嵁 - 鏀寔澶氱鏁版嵁缁撴瀯
     console.log(data.imagesFile);
     fileList.value = data.imagesFile;

--
Gitblit v1.9.3