|
@@ -2,6 +2,7 @@
|
|
<div>
|
|
<div>
|
|
<el-dialog title="电视墙" :visible.sync="TVWallVisible" v-if="TVWallVisible" customClass="TVWallCustomWidth"
|
|
<el-dialog title="电视墙" :visible.sync="TVWallVisible" v-if="TVWallVisible" customClass="TVWallCustomWidth"
|
|
@close="cancelEventLocationShow()">
|
|
@close="cancelEventLocationShow()">
|
|
|
|
+ <div @click="findCameraByEventCoordinate()">视频联动</div>
|
|
<!--<div class="forthis" style="width: 22%; position: absolute;left: 0;z-index: 9999999999999;">-->
|
|
<!--<div class="forthis" style="width: 22%; position: absolute;left: 0;z-index: 9999999999999;">-->
|
|
<!--<div class="i-list-con" style="height: 46vh; overflow-y: scroll;">-->
|
|
<!--<div class="i-list-con" style="height: 46vh; overflow-y: scroll;">-->
|
|
<!--<span v-for="(item,index) in cameraList" :key="index">-->
|
|
<!--<span v-for="(item,index) in cameraList" :key="index">-->
|
|
@@ -31,6 +32,7 @@
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
import { getDahuaVideoServer, getTVWallList } from '@/api/dahua/dahua'
|
|
import { getDahuaVideoServer, getTVWallList } from '@/api/dahua/dahua'
|
|
import { tvCameraList } from '@/api/haikang/haikang'
|
|
import { tvCameraList } from '@/api/haikang/haikang'
|
|
|
|
+import { findCameraByEventCoordinate,rotation } from '@/api/monitor'
|
|
import DHWs from '@/dahua/lib/DHWs'
|
|
import DHWs from '@/dahua/lib/DHWs'
|
|
|
|
|
|
/** ----------------------------------摄像头预览结束------------------------------------- */
|
|
/** ----------------------------------摄像头预览结束------------------------------------- */
|
|
@@ -264,6 +266,20 @@ export default {
|
|
this.ws = DHWsInstance
|
|
this.ws = DHWsInstance
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ findCameraByEventCoordinate(){
|
|
|
|
+ findCameraByEventCoordinate().then(res => {
|
|
|
|
+ const list = [];
|
|
|
|
+ for(let i in res.data){
|
|
|
|
+ list.push(res.data[i].cameraCode)
|
|
|
|
+ }
|
|
|
|
+ this.rotation('','',list);
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ rotation(lng,lat,list){
|
|
|
|
+ rotation(lng,lat,list).then(res => {
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
cancelEventLocationShow() {
|
|
cancelEventLocationShow() {
|
|
// this.activeName = 'tv'
|
|
// this.activeName = 'tv'
|
|
this.TVWallVisible = false
|
|
this.TVWallVisible = false
|