#
luxiaotao1123
2024-03-30 922cf71b78fc4a243b9a214e95729e747e65c87d
#
1个文件已修改
6 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
@@ -61,7 +61,7 @@
    const { styles } = useStyles();
    const refContainer = useRef();
    const { curLocNo, setCurLocNo } = props;
    const { data, curLocNo, setCurLocNo } = props;
    const [loading, setLoading] = React.useState(false);
    useEffect(() => {
@@ -69,11 +69,11 @@
        setLoading(true);
        const fetchShelfInfo = async (locNo) => {
            console.log("api-" + locNo);
            const res = await Http.doGet('/api/map/shelf/info', { locNo: locNo });
            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({
@@ -105,7 +105,7 @@
        }, 300)
        return endThree;
    }, [props.data.uuid]);
    }, [data]);
    return (
        <>