From 72be646f669e4f56359b87ebafdeb34732b3e102 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com>
Date: Tue, 2 Jul 2024 18:14:10 +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 | 46 ++++++++++++++++++--
ruoyi-ui/src/views/board/equipment/index.vue | 23 ++++++++--
ruoyi-ui/src/views/board/index/index.vue | 37 ++++++----------
3 files changed, 77 insertions(+), 29 deletions(-)
diff --git a/ruoyi-ui/src/views/board/GPS/index.vue b/ruoyi-ui/src/views/board/GPS/index.vue
index b57f1ea..0b8c832 100644
--- a/ruoyi-ui/src/views/board/GPS/index.vue
+++ b/ruoyi-ui/src/views/board/GPS/index.vue
@@ -42,7 +42,7 @@
地图定点
- 设备信息
+ 设备信息
@@ -115,7 +115,40 @@
-
+
+
+
+
+ 经度
+
+ {{ equipmentInfo.longitude }}
+
+
+
+ 纬度
+
+ {{ equipmentInfo.latitude }}
+
+
+
+ 设备名称
+
+ {{ equipmentInfo.deviceName }}
+
+
+
+ 城市名称
+
+ {{ equipmentInfo.deviceLocation }}
+
+
+
+ 备注
+
+ {{ equipmentInfo.remark }}
+
+
+
-
+
@@ -82,6 +82,7 @@
+
{{ k + 1 }}
{{ i.deviceName }}
-
+
e.properties.pid === this.code.toString())})
this.isTown = false
- }else{
+ } else {
this.chartDblClick(this.code)
}
},
@@ -906,9 +906,11 @@ export default {
position: [e.longitude, e.latitude],
title: `信息\n经度:${e.longitude}\n纬度:${e.latitude}\n名称:${e.deviceName}\n`,
offset: new AMap.Pixel(-15, -30),
- content: ``
+ content: ``
});
marker.on('click', async () => {
if (markerIds.includes(e.deviceId)) {
@@ -942,7 +944,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 () => {
@@ -979,7 +981,7 @@ export default {
e.forEach(v => {
let arr = this.options.filter(r => r.value.deviceId === v) || []
if (arr.length > 0) {
- this.setMarker(arr[0].value)
+ this.setMarker1(arr[0].value)
}
})
map.setFitView(markers)
@@ -1279,25 +1281,14 @@ export default {
@keyframes an1 {
0% {
- fill: #3D93FD;
+ opacity: 1;
}
50% {
- fill: #ffffff;
+ opacity: 0;
}
100% {
- fill: #3D93FD;
+ opacity: 1;
}
}
-@keyframes an2 {
- 0% {
- fill: #ff0000;
- }
- 50% {
- fill: #ffffff;
- }
- 100% {
- fill: #ff0000;
- }
-}