From 38bf4054f02933390d2bbdd44b5eaa91c83de1f3 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 02 三月 2026 17:34:27 +0800
Subject: [PATCH] 设备保养的设备备件修改

---
 src/pages/inspectionUpload/index.vue |   33 +++++++++++++++++++++------------
 1 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index 86a9b80..b6578e4 100644
--- a/src/pages/inspectionUpload/index.vue
+++ b/src/pages/inspectionUpload/index.vue
@@ -27,7 +27,7 @@
                 fontSize: '12px',
                 marginRight: '8px'
               }">
-                鎵爜涓婁紶
+                宸℃涓婁紶
               </u-button>
               <u-button type="success"
                         size="small"
@@ -180,6 +180,13 @@
                       :key="index"
                       class="file-item">
                   <view class="file-preview-container">
+                    <!-- 鍒犻櫎鎸夐挳 -->
+                    <view class="delete-btn"
+                          @click="removeFile(index)">
+                      <u-icon name="close"
+                              size="12"
+                              color="#fff"></u-icon>
+                    </view>
                     <image v-if="file.type === 'image' || (file.type !== 'video' && !file.type)"
                            :src="file.url || file.tempFilePath || file.path || file.downloadUrl"
                            class="file-preview"
@@ -192,13 +199,6 @@
                                  color="#fff"
                                  style="margin-right: 5px;"></uni-icons>
                       <text class="video-text">瑙嗛</text>
-                    </view>
-                    <!-- 鍒犻櫎鎸夐挳 -->
-                    <view class="delete-btn"
-                          @click="removeFile(index)">
-                      <u-icon name="close"
-                              size="12"
-                              color="#fff"></u-icon>
                     </view>
                   </view>
                   <view class="file-info">
@@ -410,7 +410,7 @@
 
   // 璁$畻涓婁紶URL
   const uploadFileUrl = computed(() => {
-    const baseUrl = "http://192.168.1.35:8888";
+    const baseUrl = config.baseUrl;
 
     return baseUrl + uploadConfig.action;
   });
@@ -825,6 +825,11 @@
 
   // 鎻愪氦涓婁紶
   const submitUpload = async () => {
+    // console.log("鎻愪氦涓婁紶鏁版嵁:", {
+    //   before: beforeModelValue.value,
+    //   after: afterModelValue.value,
+    //   issue: issueModelValue.value,
+    // });
     try {
       // 妫�鏌ユ槸鍚﹂�夋嫨浜嗗紓甯哥姸鎬�
       if (hasException.value === null) {
@@ -857,12 +862,15 @@
       let arr = [];
       if (beforeModelValue.value.length > 0) {
         arr.push(...beforeModelValue.value);
+        infoData.value.beforeModelValue = beforeModelValue.value;
       }
       if (afterModelValue.value.length > 0) {
         arr.push(...afterModelValue.value);
+        infoData.value.afterModelValue = afterModelValue.value;
       }
       if (issueModelValue.value.length > 0) {
         arr.push(...issueModelValue.value);
+        infoData.value.issueModelValue = issueModelValue.value;
       }
 
       // 浼犵粰鍚庣鐨勪复鏃舵枃浠禝D鍒楄〃锛坱empFileIds锛�
@@ -1045,7 +1053,7 @@
   };
 
   // 鏂囦欢璁块棶鍩虹鍩燂紙鍚庣瑕佹眰鍓嶇紑锛�
-  const filePreviewBase = "http://192.168.1.35:8888";
+  const filePreviewBase = config.baseUrl;
 
   // 灏嗗悗绔繑鍥炵殑鏂囦欢鍦板潃瑙勮寖鎴愬彲璁块棶URL
   // 鍏煎鍦烘櫙锛�
@@ -1558,7 +1566,7 @@
     };
 
     uploadList.value.push(fileData);
-
+    console.log("娣诲姞鍒板垎绫诲墠:", fileData);
     // 绔嬪嵆娣诲姞鍒板搴旂殑鍒嗙被锛屼笉绛夊緟鎵�鏈夋枃浠朵笂浼犲畬鎴�
     switch (currentUploadType.value) {
       case "before":
@@ -1783,7 +1791,7 @@
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.5);
-    z-index: 10000;
+    z-index: 100;
     display: flex;
     align-items: center;
     justify-content: center;
@@ -1922,6 +1930,7 @@
     cursor: pointer;
     box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
     transition: all 0.3s ease;
+    z-index: 1000;
   }
 
   .delete-btn:hover {

--
Gitblit v1.9.3