From 06a9d4541c30106c483106ccac6819b70a054ee8 Mon Sep 17 00:00:00 2001 From: Zhao Zhao Shen Date: Wed, 5 Mar 2025 00:10:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=85=E7=A9=BA=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=A1=86=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Dashboard/index.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/Dashboard/index.vue b/src/views/Dashboard/index.vue index f82cc8b..2bcca32 100644 --- a/src/views/Dashboard/index.vue +++ b/src/views/Dashboard/index.vue @@ -688,6 +688,20 @@ const handleBlockClick = async (deviceId, name, type) => { showWarningMessage('Device ID is null'); return; } + + // 增加一个处理,当点击切换block时,将信息框信息都清空 + id.value = ''; + currentStatus.value = ''; + startTimeFormatted.value = ''; + endTimeFormatted.value = ''; + duration.value = ''; + productFlowRate.value = ''; + formula.value = ''; + mixerStep.value = ''; // 清空 step 字段 + selectedReason.value = ''; + blendStatus.value = ''; + capacity.value = ''; + currentTitle.value = name; globalDeviceId.value = deviceId; deviceType.value = type;