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/maintain.vue |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/pages/equipmentManagement/upkeep/maintain.vue b/src/pages/equipmentManagement/upkeep/maintain.vue
index 610a185..f99dcc1 100644
--- a/src/pages/equipmentManagement/upkeep/maintain.vue
+++ b/src/pages/equipmentManagement/upkeep/maintain.vue
@@ -41,7 +41,7 @@
                  clearable />
       </u-form-item>
       <u-form-item label="淇濆吇鐘舵��"
-                   prop="status"
+                   prop="maintenancestatusText"
                    required
                    border-bottom>
         <u-input v-model="maintenancestatusText"
@@ -123,7 +123,7 @@
                   :key="index"
                   class="file-item">
               <view class="file-preview-container">
-                {{formatFileUrl(file.url)}}
+                <!-- {{formatFileUrl(file.url)}} -->
                 <image v-if="file.type === 'image' || isImageFile(file)"
                        :src="formatFileUrl(file.url || file.tempFilePath || file.path || file.downloadUrl)"
                        class="file-preview"
@@ -592,7 +592,6 @@
       await fetchSparePartOptions(pageId);
     }
     // 椤甸潰鏄剧ず鏃跺垵濮嬪寲琛ㄥ崟
-    initForm();
   });
   const sparePartOptions = ref([]);
   const fetchSparePartOptions = deviceLedgerId => {
@@ -930,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}`;
   };
 
   // 涓婁紶鎴愬姛澶勭悊

--
Gitblit v1.9.3