From 41fec38db57bf6bef3316797a472226ec8f2c6a1 Mon Sep 17 00:00:00 2001 From: zhangliang <1466013297@qq.com> Date: Thu, 31 Oct 2024 08:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E7=82=B9=E9=85=8D=E7=BD=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/gis/Site/RoleLeft/index.vue | 14 +++++++-- src/views/gis/Site/RoleRight/index.vue | 40 +++++++++++++++++++------- src/views/gis/Site/index.vue | 4 +-- 3 files changed, 43 insertions(+), 15 deletions(-) diff --git a/src/views/gis/Site/RoleLeft/index.vue b/src/views/gis/Site/RoleLeft/index.vue index bf9d0ae..bbbf99d 100644 --- a/src/views/gis/Site/RoleLeft/index.vue +++ b/src/views/gis/Site/RoleLeft/index.vue @@ -28,7 +28,7 @@ marginRight: nodeType == '0' ? '120px' : '120px', }"> - +  {{ nodeName }} @@ -56,7 +56,7 @@ }"> - + @@ -270,6 +270,16 @@ const deleteGroup = async (id: string) => { } } +const removeGroup = async (data: any) => { + const res = await editMonitor({id: data.id, positionX: '', positionY: ''}); + if (res.status === 200) { + onlyMessage('操作成功!'); + emit('getMonitorList'); + } else { + onlyMessage('操作失败!'); + } +}; + const search = () => { queryGroup(true, searchValue.value); }; diff --git a/src/views/gis/Site/RoleRight/index.vue b/src/views/gis/Site/RoleRight/index.vue index 5b17453..cfe9981 100644 --- a/src/views/gis/Site/RoleRight/index.vue +++ b/src/views/gis/Site/RoleRight/index.vue @@ -9,7 +9,7 @@ diff --git a/src/views/gis/Site/index.vue b/src/views/gis/Site/index.vue index fdec8d9..46a864a 100644 --- a/src/views/gis/Site/index.vue +++ b/src/views/gis/Site/index.vue @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ - +