From d250ca5d40e6b28c7f79c3d8ea724f039288dec3 Mon Sep 17 00:00:00 2001 From: 18516761980 <56479841@qq.com> Date: 星期五, 12 八月 2022 12:40:24 +0800 Subject: [PATCH] Merge branch 'hylywcs' of http://47.97.1.152:5880/r/zy-wcs into hylywcs --- src/main/webapp/static/js/console.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/js/console.js b/src/main/webapp/static/js/console.js index 611e6b7..34af77e 100644 --- a/src/main/webapp/static/js/console.js +++ b/src/main/webapp/static/js/console.js @@ -90,13 +90,14 @@ } // 妤煎眰 for (let i = 0; i < areas.length;i++) { + let stnss = areas[i].stns let floor = areas[i].text floorId = areas[i].id var position = (i+1)*100 floorBtn = "<button class='floorBtn btn-16' onclick='changFloor("+i+")' style='top: "+position+"px;'>" + floor +"</button>" - if (areas.length = 1) { + if (mapInfo.areas[0].floors.length == 1) { floorBtnss = '' } else { floorBtnss = floorBtnss + floorBtn @@ -135,7 +136,7 @@ $(".main-part").append(floorInfo) $("#line-total").html(total[0]) - listenChange(); + // listenChange(); } function changFloor(e) { @@ -144,5 +145,5 @@ $(".main-part").append(floorInfo) $("#line-total").empty() $("#line-total").html(total[e]) - listenChange(); + // listenChange(); } \ No newline at end of file -- Gitblit v1.9.1