From f6947e86ebb960bd8a13ddf83fbdad7e4c59f428 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com>
Date: Wed, 19 Jun 2024 17:19:41 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=95=8C=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/views/board/GPS/index.vue | 2 +-
ruoyi-ui/src/views/board/index/index.vue | 7 +++++--
ruoyi-ui/src/views/board/senso/index.vue | 2 +-
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/ruoyi-ui/src/views/board/GPS/index.vue b/ruoyi-ui/src/views/board/GPS/index.vue
index 9d87245..df22619 100644
--- a/ruoyi-ui/src/views/board/GPS/index.vue
+++ b/ruoyi-ui/src/views/board/GPS/index.vue
@@ -413,7 +413,7 @@ export default {
offset: new AMap.Pixel(-15, -30),
content: `
diff --git a/ruoyi-ui/src/views/board/index/index.vue b/ruoyi-ui/src/views/board/index/index.vue
index 389ef5f..d9be6af 100644
--- a/ruoyi-ui/src/views/board/index/index.vue
+++ b/ruoyi-ui/src/views/board/index/index.vue
@@ -781,7 +781,7 @@ export default {
title: `信息\n经度:${e.longitude}\n纬度:${e.latitude}\n名称:${e.deviceName}\n`,
offset: new AMap.Pixel(-15, -30),
content: `
`
});
marker.on('click', async () => {
@@ -852,8 +852,11 @@ export default {
map.remove(circles)
console.log(data)
data.forEach(e=>{
- this.setMarker(e)
+ if(e.latitude && e.longitude){
+ this.setMarker(e)
+ }
})
+ map.setFitView(markers)
},
exTable(){
exTableData({}, '告警信息')
diff --git a/ruoyi-ui/src/views/board/senso/index.vue b/ruoyi-ui/src/views/board/senso/index.vue
index fd1603f..a2f4c3e 100644
--- a/ruoyi-ui/src/views/board/senso/index.vue
+++ b/ruoyi-ui/src/views/board/senso/index.vue
@@ -423,7 +423,7 @@ export default {