From 695db1d59fb881ec9fcbb1eaed10f5ebb035a9e0 Mon Sep 17 00:00:00 2001 From: huangjinysf Date: Fri, 26 Dec 2025 11:25:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=BC=86=E5=8C=85=E6=9C=BA?= =?UTF-8?q?=E5=8F=B0=E8=BF=90=E8=A1=8C=E7=8A=B6=E6=80=81=E8=A1=A8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81=E6=9F=A5=E7=9C=8B=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E8=BF=90=E8=A1=8C=E7=8A=B6=E6=80=81=E3=80=81=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=BA=A6=E5=92=8C=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E5=92=8C=E7=8A=B6=E6=80=81=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/EnamellingMachineStatus.vue | 271 +++++++++++++++++++++ src/views/plan/index.vue | 44 ++++ 2 files changed, 315 insertions(+) create mode 100644 src/views/plan/EnamellingMachineStatus.vue diff --git a/src/views/plan/EnamellingMachineStatus.vue b/src/views/plan/EnamellingMachineStatus.vue new file mode 100644 index 0000000..6d16ffa --- /dev/null +++ b/src/views/plan/EnamellingMachineStatus.vue @@ -0,0 +1,271 @@ + + + + + \ No newline at end of file diff --git a/src/views/plan/index.vue b/src/views/plan/index.vue index 7e7062f..3b432df 100644 --- a/src/views/plan/index.vue +++ b/src/views/plan/index.vue @@ -3,6 +3,12 @@ + 漆包机台运行状态表 response.json()) + .then(data => { + if (data.code === 200 && data.data && data.data.equipment_status_list) { + equipmentData.value = data.data.equipment_status_list; + message.value = data.message || '设备状态数据获取成功'; + // 切换到漆包机台状态组件 + currentComponent.value = EnamellingMachineStatus; + } else { + message.value = '设备状态数据获取失败'; + } + }) + .catch(error => { + console.error('设备状态API调用失败:', error); + message.value = '设备状态API调用失败'; + }); +} + // 设备状态按钮点击事件 function handleEquipmentStatus() { // 调用设备状态API @@ -170,6 +198,22 @@ function handleRealTimeInventory() { currentComponent.value = RealTimeInventory; } +// 处理查询表格事件 +function getList() { + // 根据当前组件状态执行相应的刷新操作 + if (currentComponent.value === EnamellingMachineStatus) { + // 刷新漆包机台运行状态表 + handleEnamellingMachineStatus(); + } else if (currentComponent.value === EquipmentStatus) { + // 刷新设备状态 + handleEquipmentStatus(); + } else if (currentComponent.value === RealTimeInventory) { + // 刷新实时库存表 + message.value = '正在获取实时库存数据...'; + currentComponent.value = RealTimeInventory; + } +} +