瀏覽代碼

数据中心

彭宇 2 年之前
父節點
當前提交
35402a9576
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      src/router/index.js
  2. 3 1
      src/views/monitor.vue

+ 1 - 1
src/router/index.js

@@ -45,7 +45,7 @@ export const constantRoutes = [
 	},
 	{
 		//数据中心
-		path: '/',
+		path: '/datacenter',
 		name: '',
 		component: () => import('@/views/datacenter'),
 		meta: {

+ 3 - 1
src/views/monitor.vue

@@ -453,6 +453,8 @@ export default {
 
             markersMap.lng = res.data.visuForestCloudCameraBOList[i].longitude
             markersMap.lat = res.data.visuForestCloudCameraBOList[i].latitude
+            markersMap.radius = res.data.visuForestCloudCameraBOList[i].cameraRadius
+
             markersMap.bindPopupHtml = '<div class="map-tip">' +
               '<span>' +
               '                  <div class="d-l-con">' +
@@ -492,7 +494,7 @@ export default {
           setTimeout(() => {
             that.$refs.supermap.clearM(true)
             that.$refs.supermap.clearM(false)
-            that.$refs.supermap.setMarkers(this.cameraMarkersList)
+            that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
           }, 1000)
         }
       })