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,