From 25c9b7e028d62150520848b7c95eaf36926eee23 Mon Sep 17 00:00:00 2001 From: icewint Date: Thu, 26 Feb 2026 16:17:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E7=82=B9=E5=BA=93?= =?UTF-8?q?=E4=BD=8D=E5=9B=BE=E7=9A=84=E6=98=BE=E7=A4=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/custom/StackerLocationView.vue | 17 +++++++++++++---- .../page/stackerLocation/StackerLocationMap.vue | 5 +++-- .../interface/custom/IStackerLocationInfo.ts | 1 + 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/wcs_web/src/components/custom/StackerLocationView.vue b/wcs_web/src/components/custom/StackerLocationView.vue index 7ad3c89..45c31d5 100644 --- a/wcs_web/src/components/custom/StackerLocationView.vue +++ b/wcs_web/src/components/custom/StackerLocationView.vue @@ -94,6 +94,15 @@ const filterData = (row: number, line: number, layer: number, depth: number) : I status: -2 }; } +// 提示信息 +const tooltipString = (row: number, line: number, layer: number, depth: number) => { + const data = filterData(row, line, layer, depth); + const locationId = data.locationId; + if(data.vehicleNo != null && data.vehicleNo.length > 0) { + return locationId + ' [ ' + data.vehicleNo + ' ]'; + } + return locationId; +}; const test = () => { console.log(layerMax, depthMax); @@ -130,19 +139,19 @@ const test = () => { 禁用 - + - + {{line}} - + @@ -154,7 +163,7 @@ const test = () => { - + diff --git a/wcs_web/src/components/page/stackerLocation/StackerLocationMap.vue b/wcs_web/src/components/page/stackerLocation/StackerLocationMap.vue index 9910ab4..9cbae7e 100644 --- a/wcs_web/src/components/page/stackerLocation/StackerLocationMap.vue +++ b/wcs_web/src/components/page/stackerLocation/StackerLocationMap.vue @@ -36,7 +36,8 @@ const query = () => { line: item.lLine, layer: item.lLayer, depth: item.lDepth, - status: item.locationStatus + status: item.locationStatus, + vehicleNo: item.vehicleNo }); }); laneData.value = newData; @@ -89,7 +90,7 @@ const getLaneIdList = () => {