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;