fix:移动端组态工具隐藏
parent
3dab421342
commit
07d0cb89bd
|
|
@ -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");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue