浏览代码

数据中心

彭宇 2 年之前
父节点
当前提交
af5ff719e1
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      src/components/vBottomMenu.vue

+ 28 - 0
src/components/vBottomMenu.vue

@@ -759,6 +759,34 @@ export default {
             that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
             that.$refs.supermapTaskDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
           }, 1000)
+          if (res.data.centermonitorTCamera != null) {
+            let markersMap = {
+              lng: 124.59,
+              lat: 43.02,
+              icon: 'camera',
+              bindPopupHtml: '',
+              click: 'preview',
+              parameter: res.data.centermonitorTCamera.cameraCode,
+              keepBindPopup: false,
+              isAggregation: false,
+              radius: 0
+            }
+            markersMap.bindPopupHtml = '<div class="map-tip">' +
+              '<span>' +
+              '                  <div class="d-l-con">' +
+              '                  <div class="d-l-l-text">' +
+              '                  <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
+              '                </div>' +
+              '                </div>' +
+              '                </span>' +
+              '<span>' +
+              '</div>'
+            markersMap.lng = res.data.centermonitorTCamera.longitude
+            markersMap.lat = res.data.centermonitorTCamera.latitude
+            setTimeout(() => {
+              that.$refs.supermapTaskDialog.setMarkers([markersMap])
+            }, 2000)
+          }
         }
       })
     },