From e69d424478a903407ed6180798ab8f096143b221 Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期一, 11 七月 2022 12:55:08 +0800
Subject: [PATCH] # ycq

---
 src/main/webapp/static/js/console.js     |    7 +++++--
 src/main/webapp/static/js/console.map.js |   12 ++++++------
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/main/webapp/static/js/console.js b/src/main/webapp/static/js/console.js
index 7ddda45..611e6b7 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 // 搴撲綅涓暟
@@ -97,7 +96,11 @@
         var position = (i+1)*100
         floorBtn =
             "<button class='floorBtn btn-16' onclick='changFloor("+i+")' style='top: "+position+"px;'>" + floor +"</button>"
-        floorBtnss =  floorBtnss + floorBtn
+        if (areas.length = 1) {
+            floorBtnss = ''
+        } else {
+            floorBtnss =  floorBtnss + floorBtn
+        }
         // 姣忓眰鐨� 杈撻�佺嚎绔欑偣
         var index = i
         var n = 1
diff --git a/src/main/webapp/static/js/console.map.js b/src/main/webapp/static/js/console.map.js
index 70c6e2b..1c0847e 100644
--- a/src/main/webapp/static/js/console.map.js
+++ b/src/main/webapp/static/js/console.map.js
@@ -241,24 +241,24 @@
         "id": "lb_track2",
         "text": "",
         "top": 300,
-        "left": 380,
-        "width": 1180,
+        "left": 405,
+        "width": 1130,
         "height": 2
     }, {
         "type": "track",
         "id": "lb_track3",
         "text": "",
         "top": 438,
-        "left": 359,
-        "width": 1200,
+        "left": 405,
+        "width": 1130,
         "height": 2
     }, {
         "type": "track",
         "id": "lb_track1",
         "text": "",
         "top": 164,
-        "left": 350,
-        "width": 1112,
+        "left": 405,
+        "width": 1060,
         "height": 2
     }],
     "stns": [{

--
Gitblit v1.9.1