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/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