|
@@ -2,28 +2,29 @@
|
|
|
<div>
|
|
|
<el-dialog :title="title" :visible.sync="TVWallVisible" v-if="TVWallVisible" customClass="TVWallCustomWidth"
|
|
|
@close="cancelEventLocationShow()">
|
|
|
- <!--<div class="forthis" style="width: 22%; position: absolute;left: 0;z-index: 9999999999999;">-->
|
|
|
- <!--<!– <div class="this-title">-->
|
|
|
- <!--<span>林场</span>-->
|
|
|
- <!--<span>45</span>-->
|
|
|
- <!--</div> –>-->
|
|
|
- <!--<div class="i-list-con" style="height: 46vh; overflow-y: scroll;">-->
|
|
|
- <!--<span v-for="(item,index) in cameraList" :key="index">-->
|
|
|
- <!--<div class="d-l-con" @click="playhk(item.channelCode)">-->
|
|
|
- <!--<div class="d-l-l-text">-->
|
|
|
- <!--<i class="i-small"></i>-->
|
|
|
- <!--<h4>{{ item.cameraName }}</h4>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
+ <!--<div class="forthis" style="width: 22%; position: absolute;left: 0;z-index: 9999999999999;">-->
|
|
|
+ <!--<!– <div class="this-title">-->
|
|
|
+ <!--<span>林场</span>-->
|
|
|
+ <!--<span>45</span>-->
|
|
|
+ <!--</div> –>-->
|
|
|
+ <!--<div class="i-list-con" style="height: 46vh; overflow-y: scroll;">-->
|
|
|
+ <!--<span v-for="(item,index) in cameraList" :key="index">-->
|
|
|
+ <!--<div class="d-l-con" @click="playhk(item.channelCode)">-->
|
|
|
+ <!--<div class="d-l-l-text">-->
|
|
|
+ <!--<i class="i-small"></i>-->
|
|
|
+ <!--<h4>{{ item.cameraName }}</h4>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</span>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
<!--<div style="width:70%;height:400px;position:absolute;">-->
|
|
|
- <!--<!–视频窗口展示---大华–>-->
|
|
|
- <!--<div id="dom1" class="dom1"></div>-->
|
|
|
- <!--<!–视频窗口展示---海康–>-->
|
|
|
- <!--<div id="playWnd" class="playWnd" style="left: 0px; top: 0px;"></div>-->
|
|
|
+ <!--<!–视频窗口展示---大华–>-->
|
|
|
+ <!--<div id="dom1" class="dom1"></div>-->
|
|
|
+ <!--<!–视频窗口展示---海康–>-->
|
|
|
+ <!--<div id="playWnd" class="playWnd" style="left: 0px; top: 0px;"></div>-->
|
|
|
<!--</div>-->
|
|
|
+
|
|
|
<div id="dom1" class="dom1"></div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -38,7 +39,6 @@ import DHWs from '@/dahua/lib/DHWs'
|
|
|
import { rotation } from '@/api/monitor'
|
|
|
import Cookies from "js-cookie"
|
|
|
import {selectConfigKey} from "@/api/system/config";
|
|
|
-
|
|
|
/** ----------------------------------摄像头预览结束------------------------------------- */
|
|
|
export default {
|
|
|
dicts: ['event_source'],
|
|
@@ -48,54 +48,54 @@ export default {
|
|
|
title:['365','369','371','373','372','370'].includes(Cookies.get("deptId"))?"电视墙":"电视墙\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000您的所有操作痕迹已被后台记录,请谨慎操作。",
|
|
|
tvListJson: [
|
|
|
{
|
|
|
- 'switchTab': '1',
|
|
|
- 'treeLabels': [
|
|
|
- {
|
|
|
- 'labelCode': '123456',
|
|
|
- 'labelName': '视频场景',
|
|
|
- 'parentLabelCode': null
|
|
|
- },
|
|
|
- {
|
|
|
- 'labelCode': '5a81d1bd499b4940a21fc63ca51f4dfa',
|
|
|
- 'labelName': '标签2',
|
|
|
- 'parentLabelCode': 123456
|
|
|
- },
|
|
|
- {
|
|
|
- 'labelCode': 'd941adbbd3e64dac92cc448dec5293cd',
|
|
|
- 'labelName': '标签1',
|
|
|
- 'parentLabelCode': 123456
|
|
|
- }
|
|
|
- ],
|
|
|
- 'labelChannels': [{
|
|
|
- 'channelDates': [{
|
|
|
- 'channelCode': '6044981090191552',
|
|
|
- 'channelName': '复兴大桥中段-交通事故',
|
|
|
- 'channelSn': null,
|
|
|
- 'cameraType': 0,
|
|
|
- 'online': 1
|
|
|
- },
|
|
|
+ 'switchTab': '1',
|
|
|
+ 'treeLabels': [
|
|
|
{
|
|
|
- 'channelCode': 'ZgVzqsjwA1DTF561VGHK5E',
|
|
|
- 'channelName': '北京7青羊东二路77号2通道1',
|
|
|
- 'channelSn': null,
|
|
|
- 'cameraType': 1,
|
|
|
- 'online': 1
|
|
|
+ 'labelCode': '123456',
|
|
|
+ 'labelName': '视频场景',
|
|
|
+ 'parentLabelCode': null
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 'labelCode': '5a81d1bd499b4940a21fc63ca51f4dfa',
|
|
|
+ 'labelName': '标签2',
|
|
|
+ 'parentLabelCode': 123456
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 'labelCode': 'd941adbbd3e64dac92cc448dec5293cd',
|
|
|
+ 'labelName': '标签1',
|
|
|
+ 'parentLabelCode': 123456
|
|
|
}
|
|
|
],
|
|
|
- 'labelCode': 'd941adbbd3e64dac92cc448dec5293cd'
|
|
|
- },
|
|
|
- {
|
|
|
+ 'labelChannels': [{
|
|
|
'channelDates': [{
|
|
|
- 'channelCode': 'ZgVzqsjwA1DTF561VGHKK7',
|
|
|
- 'channelName': '北京7青羊东二路77号2通道2',
|
|
|
+ 'channelCode': '6044981090191552',
|
|
|
+ 'channelName': '复兴大桥中段-交通事故',
|
|
|
'channelSn': null,
|
|
|
- 'cameraType': 2,
|
|
|
- 'online': 0
|
|
|
- }],
|
|
|
- 'labelCode': '5a81d1bd499b4940a21fc63ca51f4dfa'
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
+ 'cameraType': 0,
|
|
|
+ 'online': 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 'channelCode': 'ZgVzqsjwA1DTF561VGHK5E',
|
|
|
+ 'channelName': '北京7青羊东二路77号2通道1',
|
|
|
+ 'channelSn': null,
|
|
|
+ 'cameraType': 1,
|
|
|
+ 'online': 1
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ 'labelCode': 'd941adbbd3e64dac92cc448dec5293cd'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 'channelDates': [{
|
|
|
+ 'channelCode': 'ZgVzqsjwA1DTF561VGHKK7',
|
|
|
+ 'channelName': '北京7青羊东二路77号2通道2',
|
|
|
+ 'channelSn': null,
|
|
|
+ 'cameraType': 2,
|
|
|
+ 'online': 0
|
|
|
+ }],
|
|
|
+ 'labelCode': '5a81d1bd499b4940a21fc63ca51f4dfa'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
'switchTab': '2',
|
|
|
'labelChannels': [{
|
|
@@ -286,6 +286,7 @@ export default {
|
|
|
},
|
|
|
//火点联动电视墙调用
|
|
|
showTVWall1(longitude,latitude,tvListJson) {
|
|
|
+
|
|
|
selectConfigKey("DssVersion").then(res => {
|
|
|
if(this.ws.getLocalDssVersion()!=res.data){
|
|
|
this.$modal.confirm('系统检测到新客户端版本,请更新后使用', '系统提示', {
|
|
@@ -302,6 +303,7 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}else{
|
|
|
+
|
|
|
// let that=this;
|
|
|
/** ----------------------------------大华摄像头预览开始------------------------------------- */
|
|
|
this.ws.addEventListener('connectStateChange', data => {
|
|
@@ -378,15 +380,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
- },
|
|
|
- realTimeVideoDialog(cameraParams) {
|
|
|
- // 调用弹窗实时播放接口
|
|
|
- if (!this.isLogin) {
|
|
|
- this.$Message.info("正在登陆客户端,请稍等......");
|
|
|
- return false;
|
|
|
- }
|
|
|
- this.ws.openVideo(cameraParams);
|
|
|
},
|
|
|
create1(longitude,latitude,tvListJson,array,array1) { // 调用创建控件接口
|
|
|
let _this = this
|
|
@@ -412,12 +405,8 @@ export default {
|
|
|
}
|
|
|
this.setPos()
|
|
|
this.customizeTree(tvListJson);
|
|
|
- // if(array1.length == 1){
|
|
|
- // _this.realTimeVideoDialog(array1);
|
|
|
- // }else{
|
|
|
- _this.ws.createCtrl(params);
|
|
|
- _this.playRealMonitorVideo(array)
|
|
|
- // }
|
|
|
+ _this.ws.createCtrl(params);
|
|
|
+ _this.playRealMonitorVideo(array)
|
|
|
setTimeout(() => {
|
|
|
_this.rotation(longitude,latitude,array1)
|
|
|
}, 5000)
|
|
@@ -458,6 +447,7 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}else{
|
|
|
+
|
|
|
if(tvListJson){
|
|
|
this.preview(tvListJson,bfArray);
|
|
|
this.TVWallVisible = true;
|
|
@@ -485,7 +475,6 @@ export default {
|
|
|
// }, 5000)
|
|
|
// /** ----------------------------------海康摄像头预览结束------------------------------------- */
|
|
|
this.TVWallVisible = true
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -550,7 +539,7 @@ export default {
|
|
|
'ctrlCode': 'ctrl1',
|
|
|
'ctrlProperty': {
|
|
|
'displayMode': 1,
|
|
|
- "splitNum": 4,
|
|
|
+ 'splitNum': 4,
|
|
|
'channelList': [
|
|
|
{
|
|
|
'channelId': ''
|
|
@@ -571,12 +560,8 @@ export default {
|
|
|
for (let i = 1; i < length; i++) {
|
|
|
bfArray.push({"channelId": tvListJson[0].treeLabels[i].labelCode})
|
|
|
}
|
|
|
- // if(bfArray.length == 1){
|
|
|
- // _this.realTimeVideoDialog([tvListJson[0].treeLabels[1].labelCode]);
|
|
|
- // }else{
|
|
|
- _this.ws.createCtrl(params);
|
|
|
- _this.playRealMonitorVideo(bfArray)
|
|
|
- // }
|
|
|
+ _this.ws.createCtrl(params);
|
|
|
+ _this.playRealMonitorVideo(bfArray)
|
|
|
},
|
|
|
setPos() {
|
|
|
let target = document.getElementById(this.domId)
|
|
@@ -913,14 +898,4 @@ html, body {
|
|
|
margin-top: 100px;
|
|
|
margin-left: 80px;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-//电视墙视频摄像头预览弹层样式
|
|
|
- .TVWallCustomWidth {
|
|
|
- width: 1500px !important;
|
|
|
- height: 750px !important;
|
|
|
- background: #04080c !important;
|
|
|
- box-shadow: $barShadow !important;
|
|
|
- border: 1px $barBorder !important;
|
|
|
- }
|
|
|
</style>
|