From 05952b488206f71f97f2e5a3bb1b4f1395635122 Mon Sep 17 00:00:00 2001 From: huangjinysf Date: Sat, 20 Dec 2025 21:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/api.js | 3 +- src/router/index.js | 13 ++++ src/views/eq/RepairSummary.vue | 108 +++++++++++++++++++++++++++++++++ src/views/eq/index.vue | 47 +++++++++++++- src/views/plan/index.vue | 2 - 5 files changed, 168 insertions(+), 5 deletions(-) create mode 100644 src/views/eq/RepairSummary.vue diff --git a/src/config/api.js b/src/config/api.js index d368d6f..374d7a4 100644 --- a/src/config/api.js +++ b/src/config/api.js @@ -9,6 +9,7 @@ export const API_CONFIG = { HELLO: '/api/hello', PARETO_ANALYSIS: '/api/qc/pareto', WORKBENCH_BADNESS: '/api/qc/badness/workbench', - EQUIPMENT_STATUS: '/api/plan/equipment/status/' + EQUIPMENT_STATUS: '/api/plan/equipment/status/', + REPAIR_SUMMARY: '/api/eq-repair/enamelling-repair-summary' } } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 07302ad..81686c2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -157,6 +157,19 @@ export const dynamicRoutes = [ meta: { title: '修改生成配置', activeMenu: '/tool/gen' } } ] + }, + { + path: '/eq', + component: Layout, + permissions: ['equipment:repair:list'], + children: [ + { + path: 'repair-summary', + component: () => import('@/views/eq/RepairSummary'), + name: 'RepairSummary', + meta: { title: '设备维修汇总', icon: 'guide' } + } + ] } ] diff --git a/src/views/eq/RepairSummary.vue b/src/views/eq/RepairSummary.vue new file mode 100644 index 0000000..f49ae22 --- /dev/null +++ b/src/views/eq/RepairSummary.vue @@ -0,0 +1,108 @@ + + + + + \ No newline at end of file diff --git a/src/views/eq/index.vue b/src/views/eq/index.vue index aeeb5ac..da2dd2d 100644 --- a/src/views/eq/index.vue +++ b/src/views/eq/index.vue @@ -3,7 +3,7 @@ - + @@ -18,6 +18,7 @@ + 帕累托分析 + + + + + + + + + + + + 维修汇总 + + 产品特征分析 + @@ -65,6 +91,7 @@ :is="currentComponent" v-if="currentComponent" :selected-time-range="queryForm.selectedTimeRange" + :selected-equipment-type="queryForm.selectedEquipmentType" :pareto-data="paretoData" :date-range="dateRange" @ai-analysis-complete="handleAIAnalysisComplete" @@ -95,6 +122,7 @@ import { API_CONFIG } from "@/config/api" import ParetoAnalysis from './ParetoAnalysis.vue' import ItemAnalysis from './ItemAnalysis.vue' import EmptyContent from './EmptyContent.vue' +import RepairSummary from './RepairSummary.vue' const showSearch = ref(true) const single = ref(true) @@ -105,8 +133,15 @@ const timeRangeOptions = ref([ { value: "近2年", label: "近2年" }, { value: "近3年", label: "近3年" } ]) + +const equipmentTypes = ref([ + { value: '漆包机', label: '漆包机' }, + { value: '拉丝机', label: '拉丝机' } +]) + const queryForm = ref({ - selectedTimeRange: "近1年" + selectedTimeRange: "近1年", + selectedEquipmentType: "漆包机" }) const paretoData = ref([]) const dateRange = ref({ @@ -194,6 +229,14 @@ function handleItemAnalysis() { currentComponent.value = ItemAnalysis; } +// 维修汇总按钮点击事件 +function handleRepairSummary() { + // 打印调试信息 + console.log('切换到维修汇总组件,设备类型:', queryForm.value.selectedEquipmentType); + // 切换到维修汇总组件 + currentComponent.value = RepairSummary; +} +