From 01a2d01abeadef5488a100ddf58a22dbcf7b95d6 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 23 四月 2024 20:18:03 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/console.js | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/static/js/console.js b/src/main/webapp/static/js/console.js index f731681..af7cba0 100644 --- a/src/main/webapp/static/js/console.js +++ b/src/main/webapp/static/js/console.js @@ -30,12 +30,12 @@ let bLen let interval // 闂撮殧鏁� - if (maxBayNo<35) { - interval = 1 - bLen = maxBayNo / interval // 搴撲綅涓暟 + if (maxBayNo < 37) { + interval = 1; + bLen = maxBayNo / interval; // 搴撲綅涓暟 } else { - interval = 2 - bLen = maxBayNo / interval // 搴撲綅涓暟 + interval = 2; + bLen = maxBayNo / interval; // 搴撲綅涓暟 } let bayWidth // 鍗曚釜搴撲綅瀹藉害 let bNum // 搴撲綅鍙风爜 @@ -89,17 +89,17 @@ racks = racks + rack // getCrnInfo(minBayNo); } - // 璐ф灦鎻忚堪 - for (let i = 0;i < rackDescss.length;i++) { - rackDesc = "<div class='rackDescs' id='" + rackDescss[i].id + - "'style='width:"+ rackDescss[i].width + - "px;height: "+ rackDescss[i].height+ - "px;line-height: "+ rackDescss[i].height+ - "px;top: "+ rackDescss[i].top + - "px;left: "+ rackDescss[i].left + - "px'>" + rackDescss[i].text + "</div>" - rackDescs = rackDescs + rackDesc - } + // // 璐ф灦鎻忚堪 + // for (let i = 0;i < rackDescss.length;i++) { + // rackDesc = "<div class='rackDescs' id='" + rackDescss[i].id + + // "'style='width:"+ rackDescss[i].width + + // "px;height: "+ rackDescss[i].height+ + // "px;line-height: "+ rackDescss[i].height+ + // "px;top: "+ rackDescss[i].top + + // "px;left: "+ rackDescss[i].left + + // "px'>" + rackDescss[i].text + "</div>" + // rackDescs = rackDescs + rackDesc + // } // 鍫嗗灈鏈哄拰鍦拌建 for (let i = 0;i < crnss.length;i++) { if (crnss[i].type == "crane") { -- Gitblit v1.9.1