From 80dda36bfb48af10698b1edf1e6a862978b36ec3 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 06 十二月 2023 17:25:15 +0800
Subject: [PATCH] 优化样式

---
 src/views/cockpitPage/components/CountView.vue |   47 ++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 40 insertions(+), 7 deletions(-)

diff --git a/src/views/cockpitPage/components/CountView.vue b/src/views/cockpitPage/components/CountView.vue
index f8c97b5..c2c6da9 100644
--- a/src/views/cockpitPage/components/CountView.vue
+++ b/src/views/cockpitPage/components/CountView.vue
@@ -7,7 +7,10 @@
         </div>
         <div class="value-view">
           <div class="title-margin-left">
-            {{ totalObject.InternalDeviceRunningAmount + "鍙�" }}
+            <span class="value-span1">
+              {{ totalObject.InternalDeviceRunningAmount + "" }}
+            </span>
+            <span class="unit-span">鍙�</span>
           </div>
         </div>
       </div>
@@ -17,7 +20,10 @@
         </div>
         <div class="value-view">
           <div class="title-margin-left">
-            {{ totalObject.ExternalDeviceRunningAmount + "鍙�" }}
+            <span class="value-span1">{{
+              totalObject.ExternalDeviceRunningAmount
+            }}</span>
+            <span>鍙�</span>
           </div>
         </div>
       </div>
@@ -29,7 +35,10 @@
         </div>
         <div class="value-view">
           <div class="title-margin-left">
-            {{ totalObject.OutPlanProductionAmount + "浠�" }}
+            <span class="value-span">{{
+              totalObject.OutPlanProductionAmount
+            }}</span>
+            <span>浠�</span>
           </div>
         </div>
       </div>
@@ -39,7 +48,10 @@
         </div>
         <div class="value-view">
           <div class="title-margin-left">
-            {{ totalObject.PlanProductionAmount + "浠�" }}
+            <span class="value-span">{{
+              totalObject.PlanProductionAmount
+            }}</span>
+            <span>浠�</span>
           </div>
         </div>
       </div>
@@ -51,7 +63,10 @@
         </div>
         <div class="value-view">
           <div class="title-margin-left">
-            {{ totalObject.RealExternalProductionAmount + "浠�" }}
+            <span class="value-span">{{
+              totalObject.RealExternalProductionAmount
+            }}</span>
+            <span>浠�</span>
           </div>
         </div>
       </div>
@@ -61,7 +76,10 @@
         </div>
         <div class="value-view">
           <div class="title-margin-left">
-            {{ totalObject.RealProductionAmount + "浠�" }}
+            <span class="value-span">{{
+              totalObject.RealProductionAmount
+            }}</span>
+            <span>浠�</span>
           </div>
         </div>
       </div>
@@ -146,7 +164,22 @@
         align-items: center;
         border-radius: 5px;
         .title-margin-left {
-          margin-left: 45px;
+          margin-left: 40px;
+          // white-space: nowrap;
+          display: flex;
+          align-items: center;
+          .value-span1 {
+            margin-top: 5px;
+            // height: 100%;
+            // max-width: 3em;
+          }
+          // .value-span {
+          // height: 100%;
+          // max-width: 3em;
+          // overflow: hidden;
+          // white-space: nowrap;
+          // text-overflow: ellipsis;
+          // }
         }
       }
     }

--
Gitblit v1.8.0