|
@@ -1,5 +1,5 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import { onMounted, ref, useTemplateRef, watch } from 'vue';
|
|
|
|
|
|
+import { computed, onMounted, ref, useTemplateRef, watch } from 'vue';
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
|
|
|
import ButtonTabs from '@/components/ButtonTabs.vue';
|
|
import ButtonTabs from '@/components/ButtonTabs.vue';
|
|
@@ -27,6 +27,7 @@ import { HumitureType } from '@/constants';
|
|
|
|
|
|
import envMonitorBgc from '@/assets/img/env-monitor-bgc.png';
|
|
import envMonitorBgc from '@/assets/img/env-monitor-bgc.png';
|
|
|
|
|
|
|
|
+import AreaEditor from './AreaEditor.vue';
|
|
import EnvMonitorList from './EnvMonitorList.vue';
|
|
import EnvMonitorList from './EnvMonitorList.vue';
|
|
import HumitureCurve from './HumitureCurve.vue';
|
|
import HumitureCurve from './HumitureCurve.vue';
|
|
|
|
|
|
@@ -542,6 +543,11 @@ onMounted(() => {
|
|
getDeviceGroup();
|
|
getDeviceGroup();
|
|
timeList.value = generateTimeArray();
|
|
timeList.value = generateTimeArray();
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+const areaEditorRef = useTemplateRef('areaEditor');
|
|
|
|
+const currentAreaData = computed(() => {
|
|
|
|
+ return monitoringList.value.find((item) => item.id === selectId.value);
|
|
|
|
+});
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -617,13 +623,13 @@ onMounted(() => {
|
|
</AFlex>
|
|
</AFlex>
|
|
<div v-show="regionList.length" class="canvas-div">
|
|
<div v-show="regionList.length" class="canvas-div">
|
|
<AFlex justify="space-between" class="canvas-div-top">
|
|
<AFlex justify="space-between" class="canvas-div-top">
|
|
- <AButton class="icon-button" @click="addOutdoorDrawer">
|
|
|
|
|
|
+ <AButton class="icon-button">
|
|
<SvgIcon name="outdoor" />
|
|
<SvgIcon name="outdoor" />
|
|
22.9℃|60.6%
|
|
22.9℃|60.6%
|
|
</AButton>
|
|
</AButton>
|
|
<AFlex>
|
|
<AFlex>
|
|
<AFlex justify="center" align="center" class="button-icon">
|
|
<AFlex justify="center" align="center" class="button-icon">
|
|
- <SvgIcon name="edit-o" />
|
|
|
|
|
|
+ <SvgIcon name="edit-o" @click="areaEditorRef?.showView" />
|
|
</AFlex>
|
|
</AFlex>
|
|
<div @click="copyRegion">
|
|
<div @click="copyRegion">
|
|
<AFlex justify="center" align="center" class="button-icon">
|
|
<AFlex justify="center" align="center" class="button-icon">
|
|
@@ -989,6 +995,7 @@ onMounted(() => {
|
|
<AButton type="primary">{{ $t('common.confirm') }}</AButton>
|
|
<AButton type="primary">{{ $t('common.confirm') }}</AButton>
|
|
</AFlex>
|
|
</AFlex>
|
|
</AModal>
|
|
</AModal>
|
|
|
|
+ <AreaEditor ref="areaEditor" :area-data="currentAreaData" @open-outdoor-drawer="addOutdoorDrawer" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|