From 23319cc8a13ce2b786762623fdffc96909b349a9 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 16 十二月 2025 10:22:50 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/areaSettings/index.jsx | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
diff --git a/zy-acs-flow/src/map/areaSettings/index.jsx b/zy-acs-flow/src/map/areaSettings/index.jsx
index a165bbd..58b2c8e 100644
--- a/zy-acs-flow/src/map/areaSettings/index.jsx
+++ b/zy-acs-flow/src/map/areaSettings/index.jsx
@@ -36,11 +36,6 @@
return bIds.every(id => setA.has(id));
};
-const mapSelectionToOptions = (selection = [], options = []) => {
- const optionMap = new Map(options.map(option => [getAgvOptionId(option), option]));
- return selection.map(item => optionMap.get(getAgvOptionId(item)) || item);
-};
-
const AreaSettings = (props) => {
const { open, onCancel, sprite, width = PAGE_DRAWER_WIDTH } = props;
const theme = useTheme();
@@ -106,7 +101,6 @@
setPriority(curAreaInfo.priority ?? '');
const selected = curAreaInfo.agvList || [];
- // const normalizedSelection = mapSelectionToOptions(selected, agvOptions);
setAgvList(selected);
setInitialBasic({
name: curAreaInfo.name || '',
@@ -123,6 +117,7 @@
};
const handleSaveBasic = async () => {
+ console.log(agvList);
const id = sprite?.data?.id;
if (!id) {
return;
@@ -134,14 +129,7 @@
};
const data = await updateAreaData(payload);
if (data) {
- console.log(data);
-
setCurAreaInfo(data);
- // setInitialBasic({
- // name,
- // agvIds: payload.agvIds,
- // });
- // fetchAreaInfo(id);
}
};
--
Gitblit v1.9.1