From d90d600550de920b6271f057e20452d8cb42df1a Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 16 May 2025 10:08:40 +0800
Subject: [PATCH] feat:修改单位

---
 src/views/wel/components/statistics.vue |   32 +++++++++++++++++++-------------
 1 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/src/views/wel/components/statistics.vue b/src/views/wel/components/statistics.vue
index 7896992..630724c 100644
--- a/src/views/wel/components/statistics.vue
+++ b/src/views/wel/components/statistics.vue
@@ -17,7 +17,7 @@
           <div class="itemcenter">
             <div>{{ test[item]?.name || '--' }}</div>
             <span class="shu">{{ newtitleData[item].total_num }}</span>
-            <span>个</span>
+            <span>{{unitMap[test[item]?.name]}}</span>
           </div>
         </div>
         <div class="status-list">
@@ -39,7 +39,7 @@
               <span class="label">{{ getStatusLabel(test[item]?.name, statusKey) }}</span>
               <span class="count">
                 {{ newtitleData[item].status_map[statusKey] }}
-                {{ test[item]?.name === '无人机' ? '架' : '个' }}
+                {{ unitMap[test[item]?.name]}}
               </span>
             </div>
           </template>
@@ -61,7 +61,7 @@
               <span class="label">{{ getStatusLabel(test[item]?.name, statusKey) }}</span>
               <span class="count">
                 {{ newtitleData[item].status_map[statusKey] }}
-                {{ test[item]?.name === '无人机' ? '架' : '个' }}
+                {{ unitMap[test[item]?.name]}}
               </span>
             </div>
           </template>
@@ -104,7 +104,7 @@
               ></span>
               <span class="label">{{ getStatusLabel(test[item]?.name, statusIndex) }}</span>
               <span class="count"
-                >{{ status }} {{ test[item]?.name === '无人机' ? '架' : '个' }}</span
+                >{{ status }} {{ unitMap[test[item]?.name]}}</span
               >
             </div>
           </template>
@@ -267,10 +267,12 @@
 };
 
 const unitMap = {
-  drone: '架',
-  nest: '个',
-  monitor: '个',
-  mobile: '个',
+  '无人机流量': '架',
+  '无人机': '架',
+  '机巢': '个',
+  '机巢保险': '个',
+  '监控设备': '个',
+  '移动机巢': '个',
 };
 watch(
   () => [
@@ -337,8 +339,8 @@
         align-items: center;
 
         img {
-          width: 43px;
-          height: 44px;
+          width: 64px;
+          height: 64px;
         }
       }
 
@@ -347,7 +349,9 @@
         font-weight: 400;
         font-size: 14px;
         color: #343434;
-
+        div{
+        margin-top: 5px;
+        }
         .shu {
           font-weight: bold;
           font-size: 36px;
@@ -356,6 +360,7 @@
           transform: skewX(-5deg);
           font-family: 'YouSheBiaoTiHei';
           // font-size: calc(12px + 0.5vw);
+          margin-right: 2px;
         }
 
         span {
@@ -411,8 +416,8 @@
         align-items: center;
 
         img {
-          width: 43px;
-          height: 44px;
+          width: 64px;
+          height: 64px;
         }
       }
 
@@ -429,6 +434,7 @@
           display: inline-block;
           transform: skewX(-5deg);
           font-family: 'YouSheBiaoTiHei';
+             margin-right: 2px;
         }
 
         span {

--
Gitblit v1.9.3