彭宇 2 lat temu
rodzic
commit
7579e8bd5a

+ 1 - 0
src/components/eventLocation.vue

@@ -169,6 +169,7 @@
       },
       handleClick(tab, event) {
         let that=this
+        that.$refs.eventLocationSupermap.controlLevel(8)
         let marker = [{
           lng: this.longitude,
           lat: this.latitude,

+ 12 - 4
src/views/datacenter.vue

@@ -60,6 +60,7 @@
 			</el-tooltip>
 
 		</div>
+    <eventLocation ref="eventLocation"></eventLocation>
 	</div>
 </template>
 
@@ -71,18 +72,19 @@
 	import supermap from '@/components/supermap' //超图
 	import vheader from '@/components/v-header.vue' //一体化共用头部
 	import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
+  import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
+
 	// import echarts from 'echarts'
 	let echarts = require('echarts')
 	export default {
 		components: {
 			supermap,
 			vheader,
-			vBottomMenu
+			vBottomMenu,
+      eventLocation
 		},
 		created() {
-			// this.$watch("open", function(newValue, oldValue) {
-			// 	this.outOpen();
-			// })
+      window.showDialog=this.showDialog
 		},
 		mounted() {
 			this.getResource()
@@ -113,6 +115,12 @@
 		},
 
 		methods: {
+      //弹出事件定位页面
+      showDialog(click){
+        if(click=="eventLocation"){
+          this.$refs.eventLocation.showEventLocation()
+        }
+      },
 			//数据分布chart
 			dataChat() {
 				// 基于准备好的dom,初始化echarts实例

+ 11 - 1
src/views/event.vue

@@ -390,6 +390,7 @@
         </el-tabs>
       </el-dialog>
     </div>
+    <eventLocation ref="eventLocation"></eventLocation>
   </div>
 </template>
 
@@ -410,6 +411,7 @@
   import supermapProcessed from '@/components/supermap' //超图
   import vheader from '@/components/v-header.vue' //一体化共用头部
   import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
+  import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
   // import echarts from 'echarts'
   let echarts = require('echarts')
   export default {
@@ -419,7 +421,8 @@
       supermapNotProcessed,
       supermapProcessed,
       vheader,
-      vBottomMenu
+      vBottomMenu,
+      eventLocation
     },
     created() {
       /** ----------------------------------摄像头预览开始------------------------------------- */
@@ -427,6 +430,7 @@
       this.ws = DHWsInstance;
       console.log(this.ws);
       /** ----------------------------------摄像头预览结束------------------------------------- */
+      window.showDialog=this.showDialog
     },
     mounted() {
       this.getTodayEvent()
@@ -567,6 +571,12 @@
     },
 
     methods: {
+      //弹出事件定位页面
+      showDialog(click){
+        if(click=="eventLocation"){
+          this.$refs.eventLocation.showEventLocation()
+        }
+      },
       //事件chart
       eventChart() {
         // 基于准备好的dom,初始化echarts实例

+ 3 - 2
src/views/forest.vue

@@ -487,9 +487,9 @@
       const DHWsInstance = DHWs.getInstance();
       this.ws = DHWsInstance;
       console.log(this.ws);
-      window.showDialog=this.showDialog
       /** ----------------------------------摄像头预览结束------------------------------------- */
-		},
+      window.showDialog=this.showDialog
+    },
 		mounted() {
       this.getBaseInfo()
       this.getTodayEvent()
@@ -665,6 +665,7 @@
 		},
 
 		methods: {
+      //弹出事件定位页面
       showDialog(click){
         if(click=="eventLocation"){
           this.$refs.eventLocation.showEventLocation()

+ 12 - 1
src/views/monitor.vue

@@ -92,6 +92,7 @@
       </el-tooltip>
 
     </div>
+    <eventLocation ref="eventLocation"></eventLocation>
   </div>
 </template>
 
@@ -101,6 +102,8 @@
   import supermap from '@/components/supermap' //超图
   import vheader from '@/components/v-header.vue' //一体化共用头部
   import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
+  import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
+
   /** ----------------------------------摄像头预览开始------------------------------------- */
   import {getDahuaVideoServer} from "@/api/dahua/dahua";
   import DHWs from '@/dahua/lib/DHWs'
@@ -113,7 +116,8 @@
     components: {
       supermap,
       vheader,
-      vBottomMenu
+      vBottomMenu,
+      eventLocation
     },
     created() {
       /** ----------------------------------摄像头预览开始------------------------------------- */
@@ -121,6 +125,7 @@
       this.ws = DHWsInstance;
       console.log(this.ws);
       /** ----------------------------------摄像头预览结束------------------------------------- */
+      window.showDialog=this.showDialog
     },
     mounted() {
       this.selectDeviceType()
@@ -151,6 +156,12 @@
       }
     },
     methods: {
+      //弹出事件定位页面
+      showDialog(click){
+        if(click=="eventLocation"){
+          this.$refs.eventLocation.showEventLocation()
+        }
+      },
       cameraChat(){
         // 基于准备好的dom,初始化echarts实例
         let myChart = echarts.init(document.getElementById('camera-chart'))