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,6 +219,13 @@ fetchSectionData(section) }) }) // 启动轮询,每分钟刷新一次数据 usePolling(() => { sections.forEach((section) => { fetchSectionData(section) }) }) </script> <style scoped lang="scss">