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/right-bottom.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/views/reportAnalysis/qualityAnalysis/components/right-bottom.vue b/src/views/reportAnalysis/qualityAnalysis/components/right-bottom.vue
index 49621f3..d210d13 100644
--- a/src/views/reportAnalysis/qualityAnalysis/components/right-bottom.vue
+++ b/src/views/reportAnalysis/qualityAnalysis/components/right-bottom.vue
@@ -17,6 +17,7 @@
 import PanelHeader from './PanelHeader.vue'
 import { unqualifiedProductProcessingAnalysis } from '@/api/viewIndex.js'
 import { useChartBackground } from '@/hooks/useChartBackground.js'
+import { usePolling } from '@/hooks/usePolling.js'
 
 const pieWrapperRef = ref(null)
 const pieBackgroundRef = ref(null)
@@ -149,13 +150,15 @@
 }
 
 onMounted(() => {
-  loadData()
   initBackground()
 })
 
 onBeforeUnmount(() => {
   cleanupBackground()
 })
+
+// 鍚姩杞锛屾瘡鍒嗛挓鍒锋柊涓�娆℃暟鎹�
+usePolling(loadData)
 </script>
 
 <style scoped>
@@ -163,7 +166,7 @@
   border: 1px solid #1a58b0;
   padding: 18px;
   width: 100%;
-  height: 420px;
+  height: 449px;
 }
 
 .pie-chart-wrapper {

--
Gitblit v1.9.3