From ad9ae93117597dcb58d91ea8d5b9aca99faaf7bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=89=E6=B5=A9=E8=8C=B9?= Date: Tue, 30 Sep 2025 01:46:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A9=BA=E8=B0=83=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=8B=E5=8F=91=E3=80=81=E5=8F=82=E6=95=B0=E9=A1=B5=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/environment/index.vue | 675 +++++++++++++++++++------------- src/utils/sendMqtt.js | 60 ++- 2 files changed, 462 insertions(+), 273 deletions(-) diff --git a/src/pages/environment/index.vue b/src/pages/environment/index.vue index 295c42b..6277e52 100644 --- a/src/pages/environment/index.vue +++ b/src/pages/environment/index.vue @@ -9,29 +9,32 @@ - + + 🌡️ - {{ temperature }}°C 温度 + {{ temperature }}°C - + + 💧 - {{ humidity }}% 湿度 + {{ humidity }}% - + + - {{ cleanliness > 0 ? cleanliness + '%' : '-%' }} 洁净度 + {{ cleanliness > 0 ? cleanliness + '%' : '-%' }} @@ -39,89 +42,95 @@ - - - 温度 - {{ temperature }}°C + + + + 温度 + {{ temperature }}°C - - - - + + + + + {{ temperatureRange.min }}°C - {{ temperatureRange.max }}°C - - {{ temperatureRange.min }}°C - {{ temperatureRange.max }}°C - - - - 湿度 - {{ humidity }}% + + + + 湿度 + {{ humidity }}% - - - - + + + + + {{ humidityRange.min }}% - {{ humidityRange.max }}% - - {{ humidityRange.min }}% - {{ humidityRange.max }}% - - - - 洁净度 - {{ cleanliness > 0 ? cleanliness + '%' : '-%' }} + + + + 洁净度 + {{ cleanliness > 0 ? cleanliness + '%' : '-%' }} - - - - + + + + + 暂无数据 - - 暂无数据 - - - 空调目标参数设置 + + 空调目标参数设置 - - 目标温度 - - - {{ targetTemperature }}°C - + + 目标温度 + + + + {{ targetTemperature }} + °C + + - - 环境控制 - + + 环境控制 + + + + + + + + + 温度控制 + {{ temperatureRange.min }}°C - {{ temperatureRange.max }}°C + + + 湿度控制 + {{ humidityRange.min }}% - {{ humidityRange.max }}% + - - 最后更新: {{ lastUpdate }} - - 温度控制: {{ temperatureRange.min }}°C - {{ temperatureRange.max }}°C - 湿度控制: {{ humidityRange.min }}% - {{ humidityRange.max }}% - +