| | |
| | | if (!curSprite) { |
| | | return |
| | | } |
| | | console.log("curLocNo - " + curLocNo); |
| | | props.setDrawerTitle(intl.formatMessage({ id: 'map.loc.no', defaultMessage: '库位号' }) + ': ' + curLocNo); |
| | | }, [curLocNo]); |
| | | |
| | |
| | | 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({ |
| | |
| | | shelfThree.handleClick = (locNo) => { |
| | | setCurLocNo(locNo); |
| | | } |
| | | fetchShelfInfo(curLocNo); |
| | | fetchShelfInfo(curLocNo); // curLoc更新不及时 |
| | | setLoading(false); |
| | | }, 300) |
| | | |