fix:移动端组态工具隐藏

dev
chuguofei 2023-05-26 11:36:21 +08:00
parent 3dab421342
commit 07d0cb89bd
1 changed files with 6 additions and 4 deletions

View File

@ -106,15 +106,17 @@
// 初始化设备状态 // 初始化设备状态
initDeviceStatus(); initDeviceStatus();
let iframe = document.querySelector('iframe'); that.$nextTick(()=>{
let iframeDoc = iframe.contentDocument || iframe.contentWindow.document; let iframe = document.querySelector('iframe');
let iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
iframeDoc.querySelector('.operateColumn').setAttribute("style","display:" + data.dis_type == 1 ? 'none;' : 'initial;')
})
if(data.dis_type == 1 ){ if(data.dis_type == 1 ){
that.popwidth = '80%' ; that.popwidth = '80%' ;
iframeDoc.querySelector('.operateColumn').setAttribute("style","display:none");
}else{ }else{
that.popwidth = '30%' ; that.popwidth = '30%' ;
iframeDoc.querySelector('.operateColumn').setAttribute("style","display:initial");
} }
} }
}); });