diff --git a/src/main/webapp/page/visual/show.html b/src/main/webapp/page/visual/show.html index a8d49ee..fc09c8c 100644 --- a/src/main/webapp/page/visual/show.html +++ b/src/main/webapp/page/visual/show.html @@ -41,7 +41,7 @@ -
+
@@ -80,7 +80,6 @@ client: '' , scene_id: '' , // 场景id dis_type: '' , // 展示类型 - disTypeFlag: false, lastTime: new Date().getTime() , popwidth: '' // 弹窗宽度 }; @@ -107,13 +106,15 @@ // 初始化设备状态 initDeviceStatus(); + let iframe = document.querySelector('iframe'); + let iframeDoc = iframe.contentDocument || iframe.contentWindow.document; - this.disTypeFlag = data.dis_type == 1 if(data.dis_type == 1 ){ that.popwidth = '80%' ; - // document.getElementById("scale").setAttribute("style","display:none") + iframeDoc.querySelector('.operateColumn').setAttribute("style","display:none"); }else{ that.popwidth = '30%' ; + iframeDoc.querySelector('.operateColumn').setAttribute("style","display:initial"); } } });