吊装视频
This commit is contained in:
parent
1a6b4885b8
commit
83a5f42faf
|
|
@ -49,6 +49,7 @@
|
|||
video = v;
|
||||
// 设置播放窗口为 2 * 2
|
||||
video.regrid(2, 2);
|
||||
toolbar(false);
|
||||
}
|
||||
|
||||
//初始化================================================================================================
|
||||
|
|
@ -61,7 +62,7 @@
|
|||
var pwd = videoParam.pwd;
|
||||
var row = videoParam.row;
|
||||
var col = videoParam.col;
|
||||
video.init({ ip: videoIp, port: videoPort, user: user, pwd: pwd, timeout: timeout, row: row, col: col, toolbar: 'top'/*top|bottom|false*/, onServerOpen: onServerOpen, onServerClose: onServerClose, onVideoClose: onVideoClose });
|
||||
video.init({ ip: videoIp, port: videoPort, user: user, pwd: pwd, timeout: timeout, row: row, col: col, toolbar: false, onServerOpen: onServerOpen, onServerClose: onServerClose, onVideoClose: onVideoClose });
|
||||
setTimeout(() => {
|
||||
loopPlayVideo();
|
||||
}, 1500);
|
||||
|
|
|
|||
|
|
@ -175,17 +175,22 @@ export default {
|
|||
methods: {
|
||||
/* 吊装设备点击赋值 */
|
||||
getStyle(item) {
|
||||
if (!item.status) {
|
||||
if (item.status === "check") {
|
||||
return this.checkStyle;
|
||||
} else if (item.status === "warn") {
|
||||
return this.warnStyle;
|
||||
} else {
|
||||
return this.nocheckStyle;
|
||||
} else if (item.status === 'check') {
|
||||
return this.checkStyle
|
||||
} else if (item.status === 'warn') {
|
||||
return this.warnStyle
|
||||
}
|
||||
},
|
||||
/* 向吊装视频传递参数 */
|
||||
sendParams(devCode, index) {
|
||||
this.devArr.forEach(item => {
|
||||
item.status = 'nocheck'
|
||||
})
|
||||
this.devArr[index].status = 'check'
|
||||
// 刷新dom
|
||||
this.$forceUpdate();
|
||||
this.$refs.iframePage.contentWindow.postMessage({ devCode: devCode }, '*');
|
||||
},
|
||||
/* 加载吊装预警设备列表 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue