| | |
| | | import JsonShow from '../../JsonShow'; |
| | | |
| | | const AgvInsight = (props) => { |
| | | const { sprite } = props; |
| | | const { sprite, setTitle } = props; |
| | | const theme = useTheme(); |
| | | const themeMode = theme.palette.mode; |
| | | const translate = useTranslate(); |
| | |
| | | setActiveTab(newValue); |
| | | }; |
| | | |
| | | useEffect(() => { |
| | | if (curAgvNo) { |
| | | setTitle(translate('page.map.devices.agv') + ' - ' + curAgvNo); |
| | | } |
| | | |
| | | return () => { |
| | | setTitle(null); |
| | | } |
| | | }, [curAgvNo]) |
| | | |
| | | return ( |
| | | <Box sx={{ height: '100%', display: 'flex', flexDirection: 'column' }}> |
| | | <Tabs |
| | |
| | | import AgvInsight from './agv'; |
| | | |
| | | const Insight = (props) => { |
| | | const { open, onCancel, sprite, width = PAGE_DRAWER_WIDTH, title } = props; |
| | | const { open, onCancel, sprite, width = PAGE_DRAWER_WIDTH } = props; |
| | | const theme = useTheme(); |
| | | const themeMode = theme.palette.mode; |
| | | const translate = useTranslate(); |
| | | const [title, setTitle] = useState(null); |
| | | |
| | | const deviceType = sprite?.data?.type; |
| | | |
| | |
| | | } |
| | | |
| | | useEffect(() => { |
| | | }, []) |
| | | }, [sprite]) |
| | | |
| | | return ( |
| | | <> |
| | |
| | | <> |
| | | <ShelfInsight |
| | | sprite={sprite} |
| | | setTitle={setTitle} |
| | | /> |
| | | </> |
| | | )} |
| | |
| | | <> |
| | | <AgvInsight |
| | | sprite={sprite} |
| | | setTitle={setTitle} |
| | | /> |
| | | </> |
| | | )} |
| | |
| | | import JsonShow from '../../JsonShow'; |
| | | |
| | | const ShelfInsight = (props) => { |
| | | const { sprite } = props; |
| | | const { sprite, setTitle } = props; |
| | | const theme = useTheme(); |
| | | const themeMode = theme.palette.mode; |
| | | const translate = useTranslate(); |
| | |
| | | package com.zy.acs.manager.manager.controller.result; |
| | | |
| | | import com.zy.acs.manager.core.domain.BackpackDto; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by vincent on 10/17/2024 |
| | |
| | | |
| | | private String agvNo; |
| | | |
| | | private List<BackpackDto> backpack = new ArrayList<>(); |
| | | |
| | | private String agvStatus = "-"; |
| | | |
| | | private String vol = "-"; |
| | | |
| | | private String soc = "-"; |
| | | |
| | | private String pos = "-"; |
| | | |
| | | private String code = "-"; |
| | | |
| | | private Double direction = 0.0; |
| | | |
| | | private Boolean online = Boolean.FALSE; |
| | | |
| | | private List<Long> taskIds = new ArrayList<>(); |
| | | |
| | | } |