From 0069b25d77cf2dd36b030fa4c86d4f3738f552e8 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期二, 13 五月 2025 08:44:37 +0800
Subject: [PATCH] 跑库测试程序

---
 src/main/webapp/static/wcs/js/console.js |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/wcs/js/console.js b/src/main/webapp/static/wcs/js/console.js
index c7984a3..0764818 100644
--- a/src/main/webapp/static/wcs/js/console.js
+++ b/src/main/webapp/static/wcs/js/console.js
@@ -40,10 +40,16 @@
             }
         }else {
             bNum = minBayNo
+            let hiddenArr = [];
+            if (rackss[i].hiddenArr != undefined) {
+                hiddenArr = rackss[i].hiddenArr
+            }
             for (let j = 0; j < bLen; j++) {
-
-                bay = "<button class='item' style='width: "+ bayWidth +"px'>" + bNum + "</button>"
-                bays = bays + bay
+                bay = "<button class='item' style='width: "+ bayWidth +"px'>" + bNum + "</button>";
+                if (hiddenArr.indexOf(bNum) != -1) {
+                    bay = "<button class='item' style='width: "+ bayWidth +"px;visibility: hidden'>" + bNum + "</button>";
+                }
+                bays = bays + bay;
                 bNum = bNum + minBayNo;
             }
         }

--
Gitblit v1.9.1