From cd1f2d9605c2e208bb7e70f5d3bc83b45a9ec8a6 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 18 六月 2026 15:16:53 +0800
Subject: [PATCH] feat: 产品规格带出产品大类

---
 src/views/reportAnalysis/qualityAnalysis/components/left-top.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/reportAnalysis/qualityAnalysis/components/left-top.vue b/src/views/reportAnalysis/qualityAnalysis/components/left-top.vue
index 8237a3f..9e9f5f5 100644
--- a/src/views/reportAnalysis/qualityAnalysis/components/left-top.vue
+++ b/src/views/reportAnalysis/qualityAnalysis/components/left-top.vue
@@ -51,6 +51,7 @@
 import PanelHeader from './PanelHeader.vue'
 import DateTypeSwitch from './DateTypeSwitch.vue'
 import { rawMaterialDetection, processDetection, factoryDetection } from '@/api/viewIndex.js'
+import { usePolling } from '@/hooks/usePolling.js'
 
 const QUALIFIED_COLOR = '#4EE4FF'
 const UNQUALIFIED_COLOR = '#3378FF'
@@ -218,9 +219,16 @@
     fetchSectionData(section)
   })
 })
+
+// 鍚姩杞锛屾瘡鍒嗛挓鍒锋柊涓�娆℃暟鎹�
+usePolling(() => {
+  sections.forEach((section) => {
+    fetchSectionData(section)
+  })
+})
 </script>
 
-<style scoped>
+<style scoped lang="scss">
 .main-panel {
   display: flex;
   flex-direction: column;
@@ -304,7 +312,7 @@
   border: 1px solid #1a58b0;
   padding: 14px 18px;
   width: 100%;
-  height: 960px;
+  height: 958px;
   box-sizing: border-box;
 }
 

--
Gitblit v1.9.3