From ffaabe340a0ce34adf3d2167f05599b5b84a7af2 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Wed, 29 Jun 2022 18:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/index.html | 2 +- front/src/supermap/advance-init.js | 3 + front/src/views/home/infrastructurePage.vue | 124 ++++++++++++++---- .../views/home/videoSurveillance/index.vue | 40 +++--- 4 files changed, 127 insertions(+), 42 deletions(-) diff --git a/front/public/index.html b/front/public/index.html index afc695e8..2f1af54c 100644 --- a/front/public/index.html +++ b/front/public/index.html @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-03-29 16:45:25 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-06-28 16:52:46 + * @LastEditTime: 2022-06-29 16:00:06 * @Description: 告诉大家这是什么 --> diff --git a/front/src/supermap/advance-init.js b/front/src/supermap/advance-init.js index 9671313f..0be17a7a 100644 --- a/front/src/supermap/advance-init.js +++ b/front/src/supermap/advance-init.js @@ -1726,6 +1726,9 @@ export function MapFun(mapObj) { } }) } + marker.on('click', e=>{ + console.log('点位数据', e) + }) layers.addLayer(marker) } }) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index ecc029c5..e68ecad9 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -11,10 +11,13 @@ :key="itemContent" @click="tabClick(index, itemContent, itemContent)" :class=" - clickList[index].content.indexOf(itemContent) != -1 ? 'down' : '' + clickList[index].content.indexOf(itemContent.labelName) != -1 || + clickList[index].content.indexOf(itemContent) != -1 + ? 'down' + : '' " > - {{ itemContent }} + {{ itemContent.labelName || itemContent }} @@ -43,11 +46,11 @@
+ > + +
+ + +
+
+ +
+
+