#
zjj
2024-06-22 8a830f3e5f9ff3bca3161b5bf800abeb1a64e866
zy-asrs-flow/src/pages/map/utils.js
@@ -689,12 +689,17 @@
    }).start();
}
export const showLockPath = (nodes, curFloor, setCurSPrite) => {
    const pathLineName = 'lockPath-' + curFloor;
export const showLockPath = (lockPath, curFloor, setCurSPrite) => {
    const pathLineName = 'lockPath';
    let pathLine = mapContainer.getChildByName(pathLineName);
    if (pathLine) {
        mapContainer.removeChild(pathLine);
    }
    for (let i = 0; i < lockPath.length; i++) {
        const item = lockPath[i]
        if(item.lev != curFloor) {continue}
        const nodes = item.path;
    pathLine = new PIXI.Graphics();
    pathLine.name = pathLineName;
@@ -704,7 +709,6 @@
    for (let i = 0; i < nodes.length; i++) {
        const node = nodes[i];
        if (node.z !== curFloor) { continue }
        const shelf = querySprite(SENSOR_TYPE.SHELF, node.x + '-' + node.y);
        if (!shelf) { continue }
@@ -722,6 +726,7 @@
    mapContainer.addChild(pathLine);
}
}
export const showConveyorSta = (conveyorSta, curFloor, setCurSPrite) => {
    for (let i = 0; i < conveyorSta.length; i++) {