From bd2a6a5afb1368c09e1e2f6135241bad7a99a416 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期三, 17 十二月 2025 08:23:09 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/areaSettings/index.jsx | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/zy-acs-flow/src/map/areaSettings/index.jsx b/zy-acs-flow/src/map/areaSettings/index.jsx
index 38af2ea..c1f8d9b 100644
--- a/zy-acs-flow/src/map/areaSettings/index.jsx
+++ b/zy-acs-flow/src/map/areaSettings/index.jsx
@@ -63,7 +63,8 @@
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: [] });
@@ -84,7 +85,8 @@
setCode('');
setMaxCount('');
setSpeedLimit('');
- setMemo('');
+ setStartPoint({ x: '', y: '' });
+ setEndPoint({ x: '', y: '' });
setPriority('');
setAgvList([]);
setCodeList([]);
@@ -107,7 +109,14 @@
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 || [];
@@ -243,8 +252,8 @@
setMaxQty={setMaxCount}
speedLimit={speedLimit}
setSpeedLimit={setSpeedLimit}
- shapeData={memo}
- setShapeData={setMemo}
+ startPoint={startPoint}
+ endPoint={endPoint}
priority={priority}
setPriority={setPriority}
onSave={handleSaveAdvanced}
--
Gitblit v1.9.1