#
luxiaotao1123
2024-03-29 5a631b5779cff67a153e0c4ea8c47ec179fa0cfb
#
2个文件已修改
4 ■■■ 已修改文件
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -29,6 +29,7 @@
        if (!curSprite) {
            return
        }
        console.log("curLocNo - " + curLocNo);
        props.setDrawerTitle(intl.formatMessage({ id: 'map.loc.no', defaultMessage: '库位号' }) + ': ' + curLocNo);
    }, [curLocNo]);
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
@@ -73,6 +73,7 @@
            if (res?.data && shelfThree) {
                shelfThree.generateMesh((addObject) => {
                    for (const item of res.data) {
                        console.log(item.locNo);
                        const { row, bay, lev } = Utils.parseLocNo(item.locNo);
                        // shelf
                        const shelfMesh = new THREE.Mesh(new THREE.BoxGeometry(100, 40, 100), new THREE.MeshStandardMaterial({
@@ -99,7 +100,7 @@
            shelfThree.handleClick = (locNo) => {
                setCurLocNo(locNo);
            }
            fetchShelfInfo(curLocNo);
            fetchShelfInfo(curLocNo);   // curLoc更新不及时
            setLoading(false);
        }, 300)