| | |
| | | const [code, setCode] = useState(''); |
| | | const [maxCount, setMaxCount] = useState(''); |
| | | const [speedLimit, setSpeedLimit] = useState(''); |
| | | const [memo, setMemo] = useState(''); |
| | | const [startPoint, setStartPoint] = useState({ x: '', y: '' }); |
| | | const [endPoint, setEndPoint] = useState({ x: '', y: '' }); |
| | | const [priority, setPriority] = useState(''); |
| | | const [agvOptions, setAgvOptions] = useState([]); |
| | | const [initialBasic, setInitialBasic] = useState({ name: '', agvIds: [] }); |
| | |
| | | setCode(''); |
| | | setMaxCount(''); |
| | | setSpeedLimit(''); |
| | | setMemo(''); |
| | | setStartPoint({ x: '', y: '' }); |
| | | setEndPoint({ x: '', y: '' }); |
| | | setPriority(''); |
| | | setAgvList([]); |
| | | setCodeList([]); |
| | |
| | | setCode(curAreaInfo.code || ''); |
| | | setMaxCount(curAreaInfo.maxCount ?? ''); |
| | | setSpeedLimit(curAreaInfo.speedLimit ?? ''); |
| | | setMemo(curAreaInfo.memo || ''); |
| | | setStartPoint({ |
| | | x: curAreaInfo.start?.x ?? '', |
| | | y: curAreaInfo.start?.y ?? '', |
| | | }); |
| | | setEndPoint({ |
| | | x: curAreaInfo.end?.x ?? '', |
| | | y: curAreaInfo.end?.y ?? '', |
| | | }); |
| | | setPriority(curAreaInfo.priority ?? ''); |
| | | |
| | | const selected = curAreaInfo.agvList || []; |
| | |
| | | setMaxQty={setMaxCount} |
| | | speedLimit={speedLimit} |
| | | setSpeedLimit={setSpeedLimit} |
| | | shapeData={memo} |
| | | setShapeData={setMemo} |
| | | startPoint={startPoint} |
| | | endPoint={endPoint} |
| | | priority={priority} |
| | | setPriority={setPriority} |
| | | onSave={handleSaveAdvanced} |