| | |
| | | const ShelfDrawer = (props) => { |
| | | const intl = useIntl(); |
| | | const { styles } = useStyles(); |
| | | const { curSprite, curFloor } = props; |
| | | |
| | | const [activeTabKey, setActiveTabKey] = useState('view'); |
| | | |
| | | const locNo = curSprite.data.no + '-' + curFloor; |
| | | |
| | | useEffect(() => { |
| | | props.setDrawerTitle(intl.formatMessage({ id: 'map.loc.no', defaultMessage: '库位号' }) + ': ' + locNo); |
| | | }, [curSprite]); |
| | | |
| | | const contentList = { |
| | | view: ( |
| | | <ShelfView |
| | | data={props.curSprite.data} |
| | | curFloor={props.curFloor} |
| | | locNo={locNo} |
| | | data={curSprite.data} |
| | | curFloor={curFloor} |
| | | /> |
| | | ), |
| | | json: ( |
| | | <ShowJson |
| | | data={props.curSprite.data} |
| | | data={curSprite.data} |
| | | /> |
| | | ), |
| | | }; |