|
@ -155,8 +155,12 @@ const computedStyle = () => { |
|
|
v-if="deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B" |
|
|
v-if="deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B" |
|
|
class="card" |
|
|
class="card" |
|
|
:class="{ |
|
|
:class="{ |
|
|
'card-center-1': deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 2, |
|
|
|
|
|
'card-center-2': deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 4, |
|
|
|
|
|
|
|
|
'card-center-1': |
|
|
|
|
|
deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B |
|
|
|
|
|
&& homeStore.h2O2SensorData.length === 2, |
|
|
|
|
|
'card-center-2': |
|
|
|
|
|
deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B |
|
|
|
|
|
&& homeStore.h2O2SensorData.length === 4, |
|
|
}" |
|
|
}" |
|
|
> |
|
|
> |
|
|
<template #default> |
|
|
<template #default> |
|
@ -179,8 +183,14 @@ const computedStyle = () => { |
|
|
:key="item.sensorId" |
|
|
:key="item.sensorId" |
|
|
class="card" |
|
|
class="card" |
|
|
:class="{ |
|
|
:class="{ |
|
|
'card-center-1': index === 0 && deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 3, |
|
|
|
|
|
'card-center-2': index === 0 && deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 5, |
|
|
|
|
|
|
|
|
'card-center-1': |
|
|
|
|
|
index === 0 |
|
|
|
|
|
&& deviceStore.deviceInfo.deviceType === deviceStore.deviceTypeMap.LargeSpaceDM_B |
|
|
|
|
|
&& homeStore.h2O2SensorData.length === 3, |
|
|
|
|
|
'card-center-2': |
|
|
|
|
|
index === 0 |
|
|
|
|
|
&& deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B |
|
|
|
|
|
&& homeStore.h2O2SensorData.length === 5, |
|
|
}" |
|
|
}" |
|
|
> |
|
|
> |
|
|
<Environment :env-params="item" /> |
|
|
<Environment :env-params="item" /> |
|
|