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 @@