fix:移动端组态工具隐藏
parent
3dab421342
commit
07d0cb89bd
|
|
@ -106,15 +106,17 @@
|
|||
// 初始化设备状态
|
||||
initDeviceStatus();
|
||||
|
||||
let iframe = document.querySelector('iframe');
|
||||
let iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
|
||||
that.$nextTick(()=>{
|
||||
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 ){
|
||||
that.popwidth = '80%' ;
|
||||
iframeDoc.querySelector('.operateColumn').setAttribute("style","display:none");
|
||||
|
||||
}else{
|
||||
that.popwidth = '30%' ;
|
||||
iframeDoc.querySelector('.operateColumn').setAttribute("style","display:initial");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue