From a2c33664f683aee11fdc62391c8d1e21cc74f5b2 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 21 五月 2026 17:24:49 +0800
Subject: [PATCH] 天津宝东 1.修改展示字段

---
 src/views/reportAnalysis/dataDashboard/index.vue |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/src/views/reportAnalysis/dataDashboard/index.vue b/src/views/reportAnalysis/dataDashboard/index.vue
index f4374b0..882b413 100644
--- a/src/views/reportAnalysis/dataDashboard/index.vue
+++ b/src/views/reportAnalysis/dataDashboard/index.vue
@@ -20,10 +20,8 @@
     <div class="dashboard-content">
     <!-- 宸︿晶鍖哄煙 -->
     <div class="left-panel">
-      <!-- 瀹㈡埛淇℃伅缁熻鍒嗘瀽 -->
       <LeftTop />
 
-      <!-- 璐ㄩ噺缁熻 -->
       <LeftBottom />
     </div>
 
@@ -36,10 +34,8 @@
 
     <!-- 鍙充晶鍖哄煙 -->
     <div class="right-panel">
-      <!-- 搴旀敹搴斾粯缁熻 -->
       <RightTop />
 
-      <!-- 鍥炴涓庡紑绁ㄥ垎鏋� -->
        <RightBottom />
     </div>
     </div>
@@ -48,7 +44,7 @@
 </template>
 
 <script setup>
-import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
+import { ref, onMounted, onBeforeUnmount, nextTick, provide } from 'vue'
 import autofit from 'autofit.js'
 import LeftTop from './components/basic/left-top.vue'
 import LeftBottom from './components/basic/left-bottom.vue'
@@ -63,19 +59,25 @@
 
 // 缂╂斁姣斾緥
 const scaleRatio = ref(1)
-// 璁捐灏哄锛堝熀鍑嗗昂瀵革級- 鏍规嵁瀹為檯璁捐绋胯皟鏁�
+// 璁捐瑙勬牸鍨嬪彿锛堝熀鍑嗚鏍煎瀷鍙凤級- 鏍规嵁瀹為檯璁捐绋胯皟鏁�
 const designWidth = 1920
 const designHeight = 1080
 
 // 鐢ㄦ埛store
 const userStore = useUserStore()
 
+// 澶у睆鎺ュ彛杞闂撮殧
+const DASHBOARD_REFRESH_MS = 60 * 1000
+const dataDashboardRefreshTick = ref(0)
+provide('dataDashboardRefreshTick', dataDashboardRefreshTick)
+let dashboardPollTimer = null
+
 // 璁$畻缂╂斁姣斾緥
 const calculateScale = () => {
   const container = document.querySelector('.scale-container')
   if (!container) return
 
-  // 鑾峰彇瀹瑰櫒鐨勫疄闄呭昂瀵�
+  // 鑾峰彇瀹瑰櫒鐨勫疄闄呰鏍煎瀷鍙�
   const rect = container.getBoundingClientRect?.()
   const containerWidth = container.clientWidth || rect?.width || window.innerWidth
   const containerHeight = container.clientHeight || rect?.height || window.innerHeight
@@ -144,9 +146,17 @@
   window.addEventListener('fullscreenchange', handleFullscreenChange)
   window.addEventListener('webkitfullscreenchange', handleFullscreenChange)
   window.addEventListener('MSFullscreenChange', handleFullscreenChange)
+
+  dashboardPollTimer = setInterval(() => {
+    dataDashboardRefreshTick.value++
+  }, DASHBOARD_REFRESH_MS)
 })
 
 onBeforeUnmount(() => {
+  if (dashboardPollTimer) {
+    clearInterval(dashboardPollTimer)
+    dashboardPollTimer = null
+  }
   window.removeEventListener('resize', handleResize)
   window.removeEventListener('fullscreenchange', handleFullscreenChange)
   window.removeEventListener('webkitfullscreenchange', handleFullscreenChange)
@@ -175,7 +185,7 @@
 overflow: hidden;
 }
 
-/* 鍐呴儴鍐呭鍖哄煙 - 鍥哄畾璁捐灏哄 */
+/* 鍐呴儴鍐呭鍖哄煙 - 鍥哄畾璁捐瑙勬牸鍨嬪彿 */
 .data-dashboard {
 position: relative;
 width: 1920px;

--
Gitblit v1.9.3