|
@@ -281,7 +281,12 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- showTVWall() {
|
|
|
|
|
|
+ showTVWall(tvListJson, bfArray) {
|
|
|
|
+ if(tvListJson){
|
|
|
|
+ this.preview(tvListJson, bfArray);
|
|
|
|
+ this.TVWallVisible = true;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
// let that=this;
|
|
// let that=this;
|
|
/** ----------------------------------大华摄像头预览开始------------------------------------- */
|
|
/** ----------------------------------大华摄像头预览开始------------------------------------- */
|
|
this.ws.addEventListener('connectStateChange', data => {
|
|
this.ws.addEventListener('connectStateChange', data => {
|
|
@@ -330,7 +335,7 @@ export default {
|
|
this.$modal.msgWarning('请重新安装客户端')
|
|
this.$modal.msgWarning('请重新安装客户端')
|
|
},
|
|
},
|
|
/** 预览按钮操作 */
|
|
/** 预览按钮操作 */
|
|
- preview() {
|
|
|
|
|
|
+ preview(tvListJson, bfArray) {
|
|
getTVWallList().then(newres => {
|
|
getTVWallList().then(newres => {
|
|
getDahuaVideoServer().then(newResponse => {
|
|
getDahuaVideoServer().then(newResponse => {
|
|
this.ws.detectConnectQt().then(res => {
|
|
this.ws.detectConnectQt().then(res => {
|
|
@@ -354,7 +359,7 @@ export default {
|
|
if (res) {
|
|
if (res) {
|
|
this.alertLoginSuccess()
|
|
this.alertLoginSuccess()
|
|
this.activePanel = 'key2'
|
|
this.activePanel = 'key2'
|
|
- this.create(newres.data)
|
|
|
|
|
|
+ this.create(tvListJson?tvListJson:newres.data, bfArray);
|
|
} else {
|
|
} else {
|
|
this.alertLoginFailed()
|
|
this.alertLoginFailed()
|
|
}
|
|
}
|
|
@@ -367,7 +372,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- create(tvListJson) { // 调用创建控件接口
|
|
|
|
|
|
+ create(tvListJson, bfArray) { // 调用创建控件接口
|
|
debugger
|
|
debugger
|
|
let _this = this
|
|
let _this = this
|
|
const params = [
|
|
const params = [
|
|
@@ -393,6 +398,7 @@ export default {
|
|
}).catch(e => {
|
|
}).catch(e => {
|
|
console.log(e)
|
|
console.log(e)
|
|
})
|
|
})
|
|
|
|
+ _this.playRealMonitorVideo(bfArray);
|
|
_this.ws.on('createCtrlResult', (res) => {
|
|
_this.ws.on('createCtrlResult', (res) => {
|
|
this.customizeTree(tvListJson)
|
|
this.customizeTree(tvListJson)
|
|
_this.ws.on('createCtrlResult', (res) => {
|
|
_this.ws.on('createCtrlResult', (res) => {
|
|
@@ -400,6 +406,18 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ playRealMonitorVideo(array) { // 自定义设备树自动播放指定通道编码视频
|
|
|
|
+ const config = this.ws.config
|
|
|
|
+ const { loginIp, userCode } = config
|
|
|
|
+ this.ws.postMessage('playRealMonitorVideo', {
|
|
|
|
+ loginIp,
|
|
|
|
+ userCode,
|
|
|
|
+ params: {
|
|
|
|
+ ctrlCode: "ctrl1",
|
|
|
|
+ array: array
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
setPos() {
|
|
setPos() {
|
|
let target = document.getElementById(this.domId)
|
|
let target = document.getElementById(this.domId)
|
|
console.log(target, 'target')
|
|
console.log(target, 'target')
|