From 99d9216d1b1e3185bffe79c4c68ff215e10785f0 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 25 五月 2026 11:15:20 +0800
Subject: [PATCH] 巡检图片上传问题

---
 src/pages/inspectionUpload/upload.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/pages/inspectionUpload/upload.vue b/src/pages/inspectionUpload/upload.vue
index 6d95785..27ba41f 100644
--- a/src/pages/inspectionUpload/upload.vue
+++ b/src/pages/inspectionUpload/upload.vue
@@ -258,12 +258,12 @@
           });
         };
 
-        // 鏍规嵁鐢ㄦ埛瑕佹眰鏄犲皠锛欰fterDTO(鐢熶骇鍓�), DTO(鐢熶骇涓�), BeforeDTO(鐢熶骇鍚�)
+        // 淇瀛楁鏄犲皠锛欱eforeVO(鐢熶骇鍓�), VO(鐢熶骇涓�), AfterVO(鐢熶骇鍚�)
         if (
-          info.commonFileListAfterVO &&
-          Array.isArray(info.commonFileListAfterVO)
+          info.commonFileListBeforeVO &&
+          Array.isArray(info.commonFileListBeforeVO)
         ) {
-          beforeModelValue.value = mapFiles(info.commonFileListAfterVO);
+          beforeModelValue.value = mapFiles(info.commonFileListBeforeVO);
         }
         console.log(beforeModelValue.value, "beforeModelValue");
 
@@ -271,10 +271,10 @@
           afterModelValue.value = mapFiles(info.commonFileListVO);
         }
         if (
-          info.commonFileListBeforeVO &&
-          Array.isArray(info.commonFileListBeforeVO)
+          info.commonFileListAfterVO &&
+          Array.isArray(info.commonFileListAfterVO)
         ) {
-          issueModelValue.value = mapFiles(info.commonFileListBeforeVO);
+          issueModelValue.value = mapFiles(info.commonFileListAfterVO);
         }
 
         // 濡傛灉鏈夊紓甯告弿杩帮紝涔熸仮澶�
@@ -360,9 +360,9 @@
         inspector: taskInfo.value?.inspector,
         hasException: hasException.value,
         inspectionResult: hasException.value ? 0 : 1, // 0-寮傚父锛�1-姝e父
-        commonFileListAfterDTO: beforeModelValue.value,
+        commonFileListBeforeDTO: beforeModelValue.value,
         commonFileListDTO: afterModelValue.value,
-        commonFileListBeforeDTO: issueModelValue.value,
+        commonFileListAfterDTO: issueModelValue.value,
         uploadedFiles: {
           before: beforeModelValue.value,
           after: afterModelValue.value,
@@ -443,9 +443,9 @@
       // 鎻愪氦鏁版嵁
       const submitData = {
         ...taskInfo.value,
-        commonFileListAfterDTO: beforeModelValue.value, // 鐢熶骇鍓�
+        commonFileListBeforeDTO: beforeModelValue.value, // 鐢熶骇鍓�
         commonFileListDTO: afterModelValue.value, // 鐢熶骇涓�
-        commonFileListBeforeDTO: issueModelValue.value, // 鐢熶骇鍚�
+        commonFileListAfterDTO: issueModelValue.value, // 鐢熶骇鍚�
         hasException: hasException.value,
         inspectionResult: hasException.value ? 0 : 1, // 0-寮傚父锛�1-姝e父
         abnormalDescription: abnormalDescription.value,

--
Gitblit v1.9.3