From 08d7d4d766979c8ad0b9833a0181a7c5c8f71fef Mon Sep 17 00:00:00 2001 From: guoapeng Date: Sat, 5 Jul 2025 17:05:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E6=97=A0=E7=BA=BF?= =?UTF-8?q?=E4=BC=A0=E6=84=9F=E5=99=A8=E5=A2=9E=E5=8A=A0=E5=BA=8F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/Environment.vue | 9 +++++---- src/stores/homeStore.ts | 8 ++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/home/Environment.vue b/src/components/home/Environment.vue index 1d71cd7..da9d756 100644 --- a/src/components/home/Environment.vue +++ b/src/components/home/Environment.vue @@ -44,9 +44,9 @@ const imgs: Record = { } const titles: Record = { - Internal: '仓内传感器', - WiredExtSensor: '外接传感器', - WirelessExtSensor: '无线传感器', + Internal: '仓内', + WiredExtSensor: '外接', + WirelessExtSensor: '无线', } /** * @hook 生命周期钩子 - 组件挂载完成时执行 @@ -61,7 +61,8 @@ onMounted(() => {
- {{ titles[envParams.type] }} + {{ titles[envParams.type] + }}{{ envParams.sensorId }}
diff --git a/src/stores/homeStore.ts b/src/stores/homeStore.ts index 632e687..0e0f161 100644 --- a/src/stores/homeStore.ts +++ b/src/stores/homeStore.ts @@ -27,6 +27,7 @@ const h2O2Data: Home.DisplayrelyMgrParams[] = [deviceTypeMap.PipeDM, deviceTypeM { type: 'WirelessExtSensor', online: false, + sensorId: 1, temp: -1, rh: -1, rs: -1, @@ -35,6 +36,7 @@ const h2O2Data: Home.DisplayrelyMgrParams[] = [deviceTypeMap.PipeDM, deviceTypeM { type: 'WirelessExtSensor', online: false, + sensorId: 2, temp: -1, rh: -1, rs: -1, @@ -43,6 +45,7 @@ const h2O2Data: Home.DisplayrelyMgrParams[] = [deviceTypeMap.PipeDM, deviceTypeM { type: 'WirelessExtSensor', online: false, + sensorId: 3, temp: -1, rh: -1, rs: -1, @@ -61,6 +64,7 @@ const h2O2Data: Home.DisplayrelyMgrParams[] = [deviceTypeMap.PipeDM, deviceTypeM { type: 'WiredExtSensor', online: false, + sensorId: 1, temp: -1, rh: -1, rs: -1, @@ -69,6 +73,7 @@ const h2O2Data: Home.DisplayrelyMgrParams[] = [deviceTypeMap.PipeDM, deviceTypeM { type: 'WiredExtSensor', online: false, + sensorId: 2, temp: -1, rh: -1, rs: -1, @@ -78,6 +83,7 @@ const h2O2Data: Home.DisplayrelyMgrParams[] = [deviceTypeMap.PipeDM, deviceTypeM type: 'WirelessExtSensor', online: false, temp: -1, + sensorId: 1, rh: -1, rs: -1, h2o2: -1, @@ -85,6 +91,7 @@ const h2O2Data: Home.DisplayrelyMgrParams[] = [deviceTypeMap.PipeDM, deviceTypeM { type: 'WirelessExtSensor', online: false, + sensorId: 2, temp: -1, rh: -1, rs: -1, @@ -93,6 +100,7 @@ const h2O2Data: Home.DisplayrelyMgrParams[] = [deviceTypeMap.PipeDM, deviceTypeM { type: 'WirelessExtSensor', online: false, + sensorId: 3, temp: -1, rh: -1, rs: -1,