From 83a5f42faf3752bfdc92862355f1d23d73142c1a Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Tue, 27 Aug 2024 10:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8A=E8=A3=85=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/dz_video.html | 3 ++- .../manage/hoistManage/hoistManage.vue | 15 ++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/public/dz_video.html b/public/dz_video.html index dcf56e7..2f476e0 100644 --- a/public/dz_video.html +++ b/public/dz_video.html @@ -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); diff --git a/src/views/construction/manage/hoistManage/hoistManage.vue b/src/views/construction/manage/hoistManage/hoistManage.vue index 5dbb35d..ab1407a 100644 --- a/src/views/construction/manage/hoistManage/hoistManage.vue +++ b/src/views/construction/manage/hoistManage/hoistManage.vue @@ -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 }, '*'); }, /* 加载吊装预警设备列表 */