Compare commits

...

2 Commits

Author SHA1 Message Date
chuguofei 3dab421342 fix:移动端组态工具隐藏 2023-05-26 10:13:00 +08:00
chuguofei 10e80ad25e fix:移动端组态工具隐藏 2023-05-25 22:30:20 +08:00
1 changed files with 7 additions and 3 deletions

View File

@ -105,12 +105,16 @@
that.mqttInit();
// 初始化设备状态
initDeviceStatus();
if(data.dis_type == 1 ){
let iframe = document.querySelector('iframe');
let iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
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");
}
}
});