From 9aeade98bdd0913128f57db1a98bbe1eafa7f08a Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 19 七月 2024 17:41:36 +0800 Subject: [PATCH] 1. 新增webSocket相关功能 --- src/views/visualization/SupervisionVisual.vue | 32 ++++++++++++++++++++++++++------ 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/views/visualization/SupervisionVisual.vue b/src/views/visualization/SupervisionVisual.vue index c14bbdd..6d593c6 100644 --- a/src/views/visualization/SupervisionVisual.vue +++ b/src/views/visualization/SupervisionVisual.vue @@ -1,15 +1,25 @@ <template> <el-row> <div class="p-events-auto"> - <OptionLocation :level="3" :width="170" v-model="locations"></OptionLocation> - <OptionSceneType :type="2" :width="120" v-model="sceneType"></OptionSceneType> + <OptionLocation + :level="3" + :width="170" + :initValue="false" + v-model="locations" + ></OptionLocation> + <OptionSceneType + :type="2" + :width="120" + :initValue="false" + v-model="sceneType" + ></OptionSceneType> <OptionTime v-model="time"></OptionTime> </div> </el-row> </template> <script> -import { inject } from 'vue' +import { inject, unref } from 'vue' import { useAreaStore } from '@/stores/area.js' import { mapStores } from 'pinia' @@ -30,8 +40,18 @@ props: {}, data() { return { - locations: {}, - sceneType: {}, + locations: { + pCode: '31', + pName: '涓婃捣甯�', + cCode: '3100', + cName: '涓婃捣甯�', + dCode: '310106', + dName: '闈欏畨鍖�' + }, + sceneType: { + label: '宸ュ湴', + value: '1' + }, time: '' } }, @@ -66,7 +86,7 @@ }) }, newLabelMasks(data) { - marks.createLabelMarks(scene_1, data) + marks.createLabelMarks(scene_1, unref(data)) } }, mounted() { -- Gitblit v1.9.3