Browse Source

fix: 驿站工作人员外出地图图标点击事件

zhangying 3 months ago
parent
commit
00d8cc5042
1 changed files with 4 additions and 0 deletions
  1. 4 0
      vue/src/views/dataMap/siteUserWorkDataMap.vue

+ 4 - 0
vue/src/views/dataMap/siteUserWorkDataMap.vue

@@ -225,6 +225,10 @@ async function onSearch() {
             const marker = new T.Marker(point, {
               icon: icon_red
             }); // 创建标注
+            marker.addEventListener('click', () => {
+              checkSiteUser(siteUser);
+
+            });
             (map as any).addOverLay(marker);// 将标注添加到地图中
             markerList.value.push(marker);
           }