fix:移动端组态工具隐藏

dev
chuguofei 2023-05-26 23:25:13 +08:00
parent 9efc07aa84
commit f8d4348532
1 changed files with 13 additions and 12 deletions

View File

@ -41,18 +41,19 @@
</span>
</el-dialog>
</div>
<div id="scale" class="operateColumn">
<img src="./image/scale_d.png" onclick="scaled()">
<img src="./image/scale_x.png" onclick="scalex()">
<img src="./image/scale_n.png" onclick="scalen()">
<div id="scale" class="operateColumn" v-if="scaleFlag">
<img src="./image/scale_d.png" onclick="scaled()">
<img src="./image/scale_x.png" onclick="scalex()">
<img src="./image/scale_n.png" onclick="scalen()">
</div>
</div>
</body>
<script type="text/javascript">
var id = getQueryString('id');
var keyCode = getQueryString('keyCode');
var app = new Vue({
window.var
app = new Vue({
el: "#appps",
data: function () {
return {
@ -82,7 +83,8 @@
scene_id: '', // 场景id
dis_type: '', // 展示类型
lastTime: new Date().getTime(),
popwidth: '' // 弹窗宽度
popwidth: '', // 弹窗宽度
scaleFlag: false,
};
},
methods: {
@ -107,12 +109,11 @@
// 初始化设备状态
initDeviceStatus();
setTimeout(function () {
let iframe = document.querySelector('iframe');
let iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
iframeDoc.querySelector('.operateColumn').setAttribute("style", "display:" + data.dis_type == 1 ? 'none;' : 'initial;')
}, 2000)
// let iframe = document.querySelector('iframe');
// let iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
// iframeDoc.querySelector('.operateColumn').setAttribute("style", "display:" + data.dis_type == 1 ? 'none;' : 'initial;')
this.scaleFlag = data.dis_type == 1;
if (data.dis_type == 1) {
that.popwidth = '80%';