From 77ec4c2a6f2a39968ad947cb731a99afe2bac611 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期四, 10 四月 2025 14:52:41 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/YiWuProject

---
 UI-Project/src/views/Caching/cachingun.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/UI-Project/src/views/Caching/cachingun.vue b/UI-Project/src/views/Caching/cachingun.vue
index 3a5b1ed..5cfea5c 100644
--- a/UI-Project/src/views/Caching/cachingun.vue
+++ b/UI-Project/src/views/Caching/cachingun.vue
@@ -33,7 +33,12 @@
   }
   tableDataa.value = data.EdgStorageCageinfos[0]
   tableDatab.value = data.taskMessage
-};
+  adjustedRects.value = data.EdgStorageCageinfos[0].map((rect, index) => ({  
+      ...rect,
+      id: rect.id * 9,
+      showRect: !!data.EdgStorageCageinfos[0][index]?.details[0]
+    })); 
+  };
 // 鏍煎紡鍖栧悗绔椂闂村苟璁$畻涓�鍛ㄥ墠鐨勬椂闂�
 const defaultTime = ref<[Date, Date]>([new Date(), new Date()]);
 function parseAndSetTime() {
@@ -401,12 +406,13 @@
     </el-card>
   <div class="awatch">
     <img src="../../assets/woshihuancun.png" alt="" style="width: 50%;height: 70%;margin-left: 30%;margin-top: 20px;position: relative;"> 
-    <div style="position: relative; width: 500px;height: 95px;margin-top: -165px;margin-left: 450px;">
+    <div style="position: relative; width: 500px;height: 95px;margin-top: -222px;margin-left: 600px;">
     <div  
       v-for="(rect, index) in adjustedRects"
+      v-show="rect.showRect"
       :key="rect"  
       :style="{ position: 'absolute', 
-       top: `${rect.id}px`, left: `10px`, width: `${rect.width}px`, height: `5px`,
+       top: `${rect.id}px`, left: `10px`, width: `422px`, height: `3px`,
       backgroundColor: '#409EFF'
        }"  
     >

--
Gitblit v1.8.0