From 361baf186c76ba0ce1ad809eeef7ff23ed971312 Mon Sep 17 00:00:00 2001
From: whycq <123456>
Date: 星期三, 10 八月 2022 07:55:45 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/console.js | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/static/js/console.js b/src/main/webapp/static/js/console.js
index 7ddda45..34af77e 100644
--- a/src/main/webapp/static/js/console.js
+++ b/src/main/webapp/static/js/console.js
@@ -26,7 +26,6 @@
let bay ='' // 鍗曚釜搴撲綅
let bays = '' // 搴撲綅闆嗗悎
let bayWidth = rackss[i].width / (rackss[i].maxBayNo / rackss[i].minBayNo)
- console.log(bayWidth)
let maxBayNo = rackss[i].maxBayNo // 鏈�澶у簱浣嶅彿
let minBayNo = rackss[i].minBayNo // 鏈�灏忓簱浣嶅彿
let bLen = maxBayNo / minBayNo // 搴撲綅涓暟
@@ -91,13 +90,18 @@
}
// 妤煎眰
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>"
- floorBtnss = floorBtnss + floorBtn
+ if (mapInfo.areas[0].floors.length == 1) {
+ floorBtnss = ''
+ } else {
+ floorBtnss = floorBtnss + floorBtn
+ }
// 姣忓眰鐨� 杈撻�佺嚎绔欑偣
var index = i
var n = 1
@@ -132,7 +136,7 @@
$(".main-part").append(floorInfo)
$("#line-total").html(total[0])
- listenChange();
+ // listenChange();
}
function changFloor(e) {
@@ -141,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