diff --git a/src/App.vue b/src/App.vue index 2e43135..0f52d32 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,27 +13,26 @@ 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") { 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", @@ -41,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/assets/icon_wifi_red.svg b/src/assets/icon_wifi_red.svg new file mode 100644 index 0000000..b25af7d --- /dev/null +++ b/src/assets/icon_wifi_red.svg @@ -0,0 +1 @@ + \ No newline at end of file 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 @@