From ce8bfc6d2ac93969163fdc61a065998c2530b6b0 Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Tue, 16 Aug 2022 17:33:37 +0800 Subject: [PATCH] =?UTF-8?q?3D=E5=BA=93=E6=88=BF=E6=A1=A3=E6=A1=88=E5=BA=93?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouse3D/archivesStorage/index.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/storeManage/warehouse3D/archivesStorage/index.vue b/src/views/storeManage/warehouse3D/archivesStorage/index.vue index 30b7a77..58a5b18 100644 --- a/src/views/storeManage/warehouse3D/archivesStorage/index.vue +++ b/src/views/storeManage/warehouse3D/archivesStorage/index.vue @@ -175,9 +175,9 @@ export default { const _this = this _this.iframeWin = this.$refs.myIframe.contentWindow // inframe 加载完成之后 - // document.getElementById('myIframe').onload = function() { - // _this.deviceState() - // } + document.getElementById('myIframe').onload = function() { + _this.deviceState() + } window.addEventListener('message', this.handleMessageDevice) }, methods: { @@ -185,8 +185,9 @@ export default { getIframeLoading(value) { // console.log(`我是iframe传过来的参数:${value}`) if (value === 'false') { + console.log(this.allDisplayConfigData) this.allDisplayConfigData.forEach(element => { - if ((!element.isDisplay || !element.bindState) && element.divPosition.includes('CAM')) { + if ((!element.isDisplay || !element.bindState) && element.divPosition.includes('OAO')) { this.handleHide(element.divPosition) } }) @@ -264,8 +265,8 @@ export default { } this.oaoMessage.push({ id: element.divPosition, - wendu: (wendu?.curvalue) ? (wendu?.curvalue) : '-', - sidu: (sidu?.curvalue) ? (sidu?.curvalue) : '-', + wendu: (wendu?.curvalue) ? (Math.round(wendu?.curvalue)) : '-', + sidu: (sidu?.curvalue) ? (Math.round(sidu?.curvalue)) : '-', alarmState: (wendu && wendu.curstatus === '1') || (sidu && sidu.curstatus === '1') }) }