From 4fe69aa7c84b8e9d88cb7cb88865a88a4815f84c Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期六, 12 四月 2025 11:18:13 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/console.js | 44 +++++++++++++++++++++++++++++--------------- 1 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/main/webapp/static/js/console.js b/src/main/webapp/static/js/console.js index 9a143eb..45b3cfd 100644 --- a/src/main/webapp/static/js/console.js +++ b/src/main/webapp/static/js/console.js @@ -9,8 +9,12 @@ track = '', tracks = '', stn = '', + barcode = '', + hoist = '', stns = '', stnArr = [], + barcodeArr = [], + hoistArr = [], floorBtn = '', floorBtns = '', floorBtnss = '', @@ -89,17 +93,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") { @@ -125,6 +129,7 @@ let stnss = areas[i].stns let floor = areas[i].text + let barcodes = areas[i].barcode floorId = areas[i].id var position = (i+1)*100 floorBtn = @@ -138,6 +143,8 @@ var index = i var n = 1 stnArr[index] = '' + barcodeArr[index] = '' + hoistArr[index] = '' total[index] = '' for (let j = 0; j < stnss.length; j++) { if (stnss[j].type == "stn") { @@ -160,11 +167,18 @@ "px'>" + stnss[j].text + "</div>" stnArr[i] = stnArr[i] + stn } - } - + for (let k = 0; k < barcodes.length; k++) { + barcode = "<div class='barcode' id='" + barcodes[k].id + + "'style='width:" + barcodes[k].width + + "px;height: " + barcodes[k].height + + "px;line-height: " + barcodes[k].height + + "px;top: "+ barcodes[k].top + + "px;left: "+ barcodes[k].left + "px'>" + "</div>" + barcodeArr[i] = barcodeArr[i] + barcode + } } - floorInfo = racks + rackDescs + tracks + crns + stnArr[0] + floorBtnss + floorInfo = racks + rackDescs + tracks + crns + stnArr[0] + floorBtnss + barcodeArr[0] $(".main-part").append(floorInfo) $("#line-total").html(total[0]) @@ -173,7 +187,7 @@ } function changFloor(e) { $(".main-part").empty() // 娓呯┖鑺傜偣 - floorInfo = racks + stnArr[e] +rackDescs + crns + tracks + floorBtnss + floorInfo = racks + stnArr[e] +rackDescs + crns + tracks + floorBtnss + barcodeArr[e] $(".main-part").append(floorInfo) $("#line-total").empty() $("#line-total").html(total[e]) -- Gitblit v1.9.1