|
@@ -41,13 +41,16 @@ const monitorOptions = ref([
|
|
label: t('envMonitor.normal'),
|
|
label: t('envMonitor.normal'),
|
|
value: 1,
|
|
value: 1,
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ label: t('common.turnOff'),
|
|
|
|
+ value: 0,
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label: t('common.offline'),
|
|
label: t('common.offline'),
|
|
value: -1,
|
|
value: -1,
|
|
},
|
|
},
|
|
]);
|
|
]);
|
|
const activeMonitoringType = ref<number>(-1);
|
|
const activeMonitoringType = ref<number>(-1);
|
|
-const handleTabClick = () => {};
|
|
|
|
const historicalDataClick = (data: MonitoringPointData) => {
|
|
const historicalDataClick = (data: MonitoringPointData) => {
|
|
monitoringIds.value = [];
|
|
monitoringIds.value = [];
|
|
props.monitorData.forEach((item) => {
|
|
props.monitorData.forEach((item) => {
|
|
@@ -194,7 +197,7 @@ onMounted(() => {
|
|
<div class="monitoring-margin">
|
|
<div class="monitoring-margin">
|
|
<div>
|
|
<div>
|
|
<span class="degree-value">{{ outSideHumidity }}</span
|
|
<span class="degree-value">{{ outSideHumidity }}</span
|
|
- ><span>°C</span>
|
|
|
|
|
|
+ ><span>%</span>
|
|
</div>
|
|
</div>
|
|
<div class="average-text text-center">{{ $t('envMonitor.outdoorHumidity') }}</div>
|
|
<div class="average-text text-center">{{ $t('envMonitor.outdoorHumidity') }}</div>
|
|
</div>
|
|
</div>
|
|
@@ -208,7 +211,6 @@ onMounted(() => {
|
|
:tab-bar-gutter="18"
|
|
:tab-bar-gutter="18"
|
|
v-model:active-key="activeMonitoringType"
|
|
v-model:active-key="activeMonitoringType"
|
|
type="card"
|
|
type="card"
|
|
- @tab-click="handleTabClick"
|
|
|
|
tab-position="top"
|
|
tab-position="top"
|
|
>
|
|
>
|
|
<ATabPane :key="-1" :tab="$t('envMonitor.overview')" />
|
|
<ATabPane :key="-1" :tab="$t('envMonitor.overview')" />
|