#
luxiaotao1123
2024-04-13 bf744726ddafb611e83acde9b34a0d642f7bbc2a
#
3个文件已修改
11 ■■■■ 已修改文件
zy-asrs-flow/src/config/setting.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shuttle/view.jsx 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/utils.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/config/setting.ts
@@ -1,5 +1,5 @@
// 接口地址
export const IP: string = 'localhost';
export const IP: string = '192.168.2.95';
export const PORT: number = 9090;
export const API_BASE_URL: string = 'http://' + IP + ':' + PORT + '/wcs';
zy-asrs-flow/src/pages/map/drawer/shuttle/view.jsx
@@ -59,6 +59,13 @@
            setLoading(false);
        }
        fetchShuttleInfo(data.no);
        const timer = setInterval(() => {
            fetchShuttleInfo(data.no);
        }, 1000);
        return () => {
            clearInterval(timer);
        }
    }, [data]);
    useEffect(() => {
zy-asrs-flow/src/pages/map/utils.js
@@ -636,7 +636,7 @@
    pathLine.lineStyle(2 * (1 / mapContainer.scale.x), 0x3498db, 0.8);
    pathLine.zIndex = SENSOR_ZINDEX.TRAVEL_PATH;
    let firstNode = true;
    for (let i = Math.max(0, path.indexOf(curLocNo) - 1); i < path.length; i++) {
    for (let i = Math.max(0, path.indexOf(curLocNo)); i < path.length; i++) {
        const { row, bay, lev } = parseLocNo(path[i]);
        if (Number(lev) !== curFloor) { continue }
        const shelf = querySprite(SENSOR_TYPE.SHELF, row + '-' + bay);