| | |
| | | setSpeedLimit, |
| | | startPoint, |
| | | endPoint, |
| | | memo, |
| | | setMemo, |
| | | priority, |
| | | setPriority, |
| | | onSave, |
| | |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={12}> |
| | | <TextField |
| | | label={translate('page.map.area.shape', { _: '备注' })} |
| | | fullWidth |
| | | multiline |
| | | minRows={3} |
| | | value={memo} |
| | | onChange={(e) => setMemo(e.target.value)} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={12}> |
| | | <Button variant="contained" type="submit"> |
| | | {translate('common.action.save', { _: '保存' })} |
| | | </Button> |
| | |
| | | const [startPoint, setStartPoint] = useState({ x: '', y: '' }); |
| | | const [endPoint, setEndPoint] = useState({ x: '', y: '' }); |
| | | const [priority, setPriority] = useState(''); |
| | | const [memo, setMemo] = useState(''); |
| | | const [agvOptions, setAgvOptions] = useState([]); |
| | | const [initialBasic, setInitialBasic] = useState({ name: '', agvIds: [] }); |
| | | const [curAreaInfo, setCurAreaInfo] = useState(null); |
| | |
| | | setStartPoint({ x: '', y: '' }); |
| | | setEndPoint({ x: '', y: '' }); |
| | | setPriority(''); |
| | | setMemo(''); |
| | | setAgvList([]); |
| | | setCodeList([]); |
| | | setInitialBasic({ name: '', agvIds: [] }); |
| | |
| | | y: curAreaInfo.end?.y ?? '', |
| | | }); |
| | | setPriority(curAreaInfo.priority ?? ''); |
| | | setMemo(curAreaInfo.memo || ''); |
| | | |
| | | const selected = curAreaInfo.agvList || []; |
| | | const normalizedSelection = mapSelectionToOptions(selected, agvOptions); |
| | |
| | | endPoint={endPoint} |
| | | priority={priority} |
| | | setPriority={setPriority} |
| | | memo={memo} |
| | | setMemo={setMemo} |
| | | onSave={handleSaveAdvanced} |
| | | /> |
| | | )} |