From f0c8e8aaf9f41a7ab0f02a23cd7c5de1bffb9e71 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期三, 20 五月 2026 18:32:47 +0800
Subject: [PATCH] feat: 决策分析数据获取新增轮询

---
 src/views/reportAnalysis/qualityAnalysis/components/center-top.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/views/reportAnalysis/qualityAnalysis/components/center-top.vue b/src/views/reportAnalysis/qualityAnalysis/components/center-top.vue
index 3ecf799..4ae0653 100644
--- a/src/views/reportAnalysis/qualityAnalysis/components/center-top.vue
+++ b/src/views/reportAnalysis/qualityAnalysis/components/center-top.vue
@@ -20,8 +20,9 @@
 </template>
 
 <script setup>
-import { ref, onMounted } from 'vue'
+import { ref } from 'vue'
 import { qualityInspectionCount } from '@/api/viewIndex.js'
+import { usePolling } from '@/hooks/usePolling.js'
 
 const statItems = ref([])
 
@@ -62,9 +63,8 @@
     })
 }
 
-onMounted(() => {
-  fetchData()
-})
+// 鍚姩杞锛屾瘡鍒嗛挓鍒锋柊涓�娆℃暟鎹�
+usePolling(fetchData)
 </script>
 
 <style scoped>
@@ -117,6 +117,8 @@
   gap: 6px;
   font-size: 15px;
   color: #d0e7ff;
+  white-space: nowrap;
+  flex-wrap: nowrap;
 }
 
 .card-compare>span:first-child {

--
Gitblit v1.9.3