From 539231de1e68f45a6f11bc88df665cc1f161941f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 09 十二月 2025 15:34:59 +0800
Subject: [PATCH] 1.南洋电缆-小数点位展示修改

---
 src/views/reportAnalysis/dataDashboard/index.vue |   29 ++++++++++++++++++++++-------
 1 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/src/views/reportAnalysis/dataDashboard/index.vue b/src/views/reportAnalysis/dataDashboard/index.vue
index 6fe840b..901c1b4 100644
--- a/src/views/reportAnalysis/dataDashboard/index.vue
+++ b/src/views/reportAnalysis/dataDashboard/index.vue
@@ -12,6 +12,7 @@
 
       <!-- 椤堕儴鏍囬鏍� -->
       <div class="dashboard-header">
+        <div class="factory-name">{{ userStore.currentFactoryName }}</div>
       </div>
 
       <!-- 涓昏鍐呭鍖哄煙 -->
@@ -129,21 +130,21 @@
           </div>
           <div class="equipment-items">
             <div class="equipment-item">
-              <span class="equipment-value">{{equipmentNum}}</span>
+              <span class="equipment-value">21</span>
               <span class="equipment-label">璁惧鎬绘暟</span>
             </div>
             <div class="equipment-item">
-              <span class="equipment-value">{{equipmentRepair}}</span>
+              <span class="equipment-value">3</span>
               <span class="equipment-label">寰呯淮淇澶�</span>
             </div>
             <div class="equipment-item">
-              <span class="equipment-value">{{equipmentMaintain}}</span>
+              <span class="equipment-value">4</span>
               <span class="equipment-label">寰呬繚鍏昏澶�</span>
             </div>
-            <div class="equipment-item">
+            <!-- <div class="equipment-item">
               <span class="equipment-value">{{totalMeasuring}}</span>
               <span class="equipment-label">璁¢噺鍣ㄥ叿鎬绘暟</span>
-            </div>
+            </div> -->
           </div>
         </div>
 
@@ -241,6 +242,7 @@
 import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
 import autofit from 'autofit.js'
 import Echarts from "@/components/Echarts/echarts.vue";
+import useUserStore from '@/store/modules/user'
 import {
 	analysisCustomerContractAmounts, getAmountHalfYear,
 	homeTodos,
@@ -258,6 +260,9 @@
 
 // 鍏ㄥ睆鐩稿叧鐘舵��
 const isFullscreen = ref(false);
+
+// 鐢ㄦ埛store
+const userStore = useUserStore()
 
 // 鍝嶅簲寮忔暟鎹�
 const currentTime = ref('')
@@ -915,7 +920,7 @@
   // 浣跨敤nextTick纭繚DOM瀹屽叏娓叉煋鍚庡啀鍒濆鍖栧浘琛�
   nextTick(() => {
     // 鍒濆鍖朼utofit鑷�傚簲
-    autofit.init({ dh: 1440, dw: 2560, el: '.data-dashboard', resize: true }, false)
+    autofit.init({ dh: 1080, dw: 1920, el: '.data-dashboard', resize: true }, false)
     
     // 娣诲姞鑷姩婊氬姩鍔ㄧ敾鏁堟灉 - 瀹㈡埛淇℃伅鍒楄〃
     const contractList = refContractList.value
@@ -1044,7 +1049,6 @@
   position: relative;
   width: 100%;
 	height: 100%;
-  overflow: hidden;
 	background-image: url("@/assets/BI/backImage@2x.png");
 	background-size: cover;
 	background-position: center;
@@ -1090,6 +1094,17 @@
 	background-size: cover;
 	background-position: center;
 	background-repeat: no-repeat;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
+.factory-name {
+  font-weight: 600;
+font-size: 52px;
+color: #FFFFFF;
+top: 32px;
+position: absolute;
 }
 
 .fullscreen-btn {

--
Gitblit v1.9.3