From 27a948d0b889e4804c0700e46f4f10dbaf900001 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Mon, 3 Mar 2025 21:52:50 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=93=8D=E5=BA=94=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++- src/components/FooterBar.vue | 11 +++++--- src/services/globalCmd/globalCmd.ts | 11 ++++++-- src/services/wsTypes.ts | 18 ++++++++++++- src/stores/equipmentStatus.ts | 9 ++++++- src/style.css | 8 ++++++ src/views/HomeView.vue | 52 ++++++++++++++++++++++++++++++++++--- src/views/PreSpray.vue | 40 ++++++++++++++++++++++------ src/views/SprayView.vue | 14 +++++++--- 9 files changed, 144 insertions(+), 23 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2e43135..9fdddc8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,7 +13,9 @@ const router = useRouter(); const wsClient = createWebSocket(sharedWsUrl); wsClient.dataOb.subscribe(data => { - if (data.type === "status") { + if (data.type === "ing") { + equipmentStatusStore.setWorkStatus(data.data.workStatus); + } else if (data.type === "status") { equipmentStatusStore.setEquipmentStatus(data["data"]); } else if (data.type === "warn") { if (data.data.code === "wash_complete") { diff --git a/src/components/FooterBar.vue b/src/components/FooterBar.vue index e6895f5..229d5a8 100644 --- a/src/components/FooterBar.vue +++ b/src/components/FooterBar.vue @@ -1,7 +1,12 @@