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