From b008ae300c72291400db0fb718c23bef44b08196 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Mon, 3 Mar 2025 22:26:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA=E6=96=87?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 +--- src/components/Dialog.vue | 11 +++---- src/views/HomeView.vue | 2 -- src/views/PreSpray.vue | 80 +++++++++++++++++++++++++++++------------------ 4 files changed, 56 insertions(+), 43 deletions(-) diff --git a/src/App.vue b/src/App.vue index 9fdddc8..0f52d32 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,22 +20,19 @@ wsClient.dataOb.subscribe(data => { } else if (data.type === "warn") { if (data.data.code === "wash_complete") { dialogContent.value = { - title: "提示", desc: "清洗管道已经完成", type: "alert", }; showDialog.value = true; } else if (data.data.code === "prefill_complete") { dialogContent.value = { - title: "提示", desc: "预充管道已经完成", type: "alert", }; showDialog.value = true; } else if (data.data.code === "dehumidify_complete") { dialogContent.value = { - title: "提示", - desc: "除湿已完成", + desc: "湿度已达到设定值,氮气已置换完毕。", type: "confirm", okText: "去喷涂", _brand: "dehumidify_complete", @@ -43,7 +40,6 @@ wsClient.dataOb.subscribe(data => { showDialog.value = true; } else if (data.data.code === "spray_complete") { dialogContent.value = { - title: "提示", desc: "喷涂结束,建议回首页清洗管道", type: "confirm", okText: "去清洗", diff --git a/src/components/Dialog.vue b/src/components/Dialog.vue index bcef7c2..d64bc37 100644 --- a/src/components/Dialog.vue +++ b/src/components/Dialog.vue @@ -1,11 +1,11 @@