From 22e0ce8d19c0fad19c6c0250f9ea3e4d5296e542 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 13 三月 2024 15:48:36 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/components/mapSettings.jsx |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/components/mapSettings.jsx b/zy-asrs-flow/src/pages/map/components/mapSettings.jsx
index d4013c3..0231b6f 100644
--- a/zy-asrs-flow/src/pages/map/components/mapSettings.jsx
+++ b/zy-asrs-flow/src/pages/map/components/mapSettings.jsx
@@ -99,6 +99,19 @@
         setLastCopiedSprites([]);
         for (let i = 0; i < values.copyCount; i++) {
             const copiedSprite = Utils.copySprite(curSprite);
+            // auto-increment-value
+            if (values.autoIncrement && values.type) {
+                switch (values.type) {
+                    case Utils.SENSOR_TYPE.SHELF:
+                        console.log(values);
+                        break;
+                    case Utils.SENSOR_TYPE.AGV:
+                        break;
+                    default:
+                        break;
+                }
+            }
+            // graph copy
             switch (values.copyDire) {
                 case 'left':
                     copiedSprite.position.x -= (i + 1) * (values.copyGap + copiedSprite.width);
@@ -339,7 +352,7 @@
                                     </Form.Item>
                                     <Form.Item>
                                         <Button
-                                            type="link" 
+                                            type="link"
                                             onClick={() => {
                                                 if (lastCopiedSprites) {
                                                     lastCopiedSprites.forEach(copiedSprite => {

--
Gitblit v1.9.1