| | |
| | | } |
| | | } |
| | | |
| | | const ShelfView = (props) => { |
| | | const intl = useIntl(); |
| | | const { styles } = useStyles(); |
| | | const refContainer = useRef(); |
| | | |
| | | const { data, curFloor, curLocNo, setCurLocNo } = props; |
| | | const [loading, setLoading] = React.useState(false); |
| | | |
| | | useEffect(() => { |
| | | const originLocNo = data.no + '-' + curFloor; |
| | | |
| | | endThree(); |
| | | setLoading(true); |
| | | |
| | | const fetchShelfInfo = async (locNo) => { |
| | | const res = await Http.doGet('/api/map/shelf/info', { locNo: locNo }); |
| | | if (res?.data && shelfThree) { |
| | |
| | | } |
| | | } |
| | | |
| | | const ShelfView = (props) => { |
| | | const intl = useIntl(); |
| | | const { styles } = useStyles(); |
| | | const refContainer = useRef(); |
| | | |
| | | const { data, curFloor, curLocNo, setCurLocNo } = props; |
| | | const [loading, setLoading] = React.useState(false); |
| | | |
| | | useEffect(() => { |
| | | // init curLocNo |
| | | const originLocNo = data.no + '-' + curFloor; |
| | | setCurLocNo(originLocNo); |
| | | |
| | | endThree(); |
| | | setLoading(true); |
| | | |
| | | setTimeout(() => { |
| | | startThree(refContainer.current); |
| | | shelfThree.handleClick = (objName) => { |