|
|
@ -145,6 +145,9 @@ const computedStyle = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
const deviceType = computed(() => { |
|
|
|
return __DEVICE_TYPE__ |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
@ -152,13 +155,13 @@ const computedStyle = () => { |
|
|
|
<div v-if="route.path === '/home'" class="home-grid-container"> |
|
|
|
<div class="home-left" :style="styles"> |
|
|
|
<el-card |
|
|
|
v-if="__DEVICE_TYPE__ !== deviceStore.deviceTypeMap.LargeSpaceDM_B" |
|
|
|
v-if="deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B" |
|
|
|
class="card" |
|
|
|
:class="{ |
|
|
|
'card-center-1': |
|
|
|
__DEVICE_TYPE__ !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 2, |
|
|
|
deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 2, |
|
|
|
'card-center-2': |
|
|
|
__DEVICE_TYPE__ !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 4, |
|
|
|
deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 4, |
|
|
|
}" |
|
|
|
> |
|
|
|
<template #default> |
|
|
@ -183,11 +186,11 @@ const computedStyle = () => { |
|
|
|
:class="{ |
|
|
|
'card-center-1': |
|
|
|
index === 0 |
|
|
|
&& __DEVICE_TYPE__ === deviceStore.deviceTypeMap.LargeSpaceDM_B |
|
|
|
&& deviceType === deviceStore.deviceTypeMap.LargeSpaceDM_B |
|
|
|
&& homeStore.h2O2SensorData.length === 3, |
|
|
|
'card-center-2': |
|
|
|
index === 0 |
|
|
|
&& __DEVICE_TYPE__ !== deviceStore.deviceTypeMap.LargeSpaceDM_B |
|
|
|
&& deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B |
|
|
|
&& homeStore.h2O2SensorData.length === 5, |
|
|
|
}" |
|
|
|
> |
|
|
|