From 47eb4cf11427e2df5eef0bdc876601107f8bb1ec Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 25 三月 2024 16:30:49 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/batch/modify.jsx |   14 +-------------
 zy-asrs-flow/src/pages/map/utils.js         |   10 +++++++++-
 2 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/batch/modify.jsx b/zy-asrs-flow/src/pages/map/batch/modify.jsx
index d48046b..e97ba99 100644
--- a/zy-asrs-flow/src/pages/map/batch/modify.jsx
+++ b/zy-asrs-flow/src/pages/map/batch/modify.jsx
@@ -10,14 +10,6 @@
 import * as Utils from '../utils'
 import ShowJson from '../drawer/showJson';
 
-const waitTime = (time = 100) => {
-    return new Promise((resolve) => {
-        setTimeout(() => {
-            resolve(true);
-        }, time);
-    });
-};
-
 const BatchModify = (props) => {
     const intl = useIntl();
     const { batchSprites } = props;
@@ -34,7 +26,7 @@
     }, [batchSprites]);
 
     const handleOk = (values) => {
-        console.log(values);
+        console.log(values); return true;
         if (batchSprites?.length > 0) {
             // loading
             batchSprites.forEach(sprite => {
@@ -56,10 +48,6 @@
             <StepsForm
                 current={currentStep}
                 onCurrentChange={setCurrentStep}
-                onFinish={async () => {
-                    await waitTime(1000);
-                    message.success('鎻愪氦鎴愬姛');
-                }}
                 formProps={{
                     variant: 'filled',
                     layout: 'horizontal',
diff --git a/zy-asrs-flow/src/pages/map/utils.js b/zy-asrs-flow/src/pages/map/utils.js
index b45a4cf..eed6cfd 100644
--- a/zy-asrs-flow/src/pages/map/utils.js
+++ b/zy-asrs-flow/src/pages/map/utils.js
@@ -492,4 +492,12 @@
         sprite.tint = showColor;
     }
     return showColor;
-}
\ No newline at end of file
+}
+
+export const waitTime = (time = 1000) => {
+    return new Promise((resolve) => {
+        setTimeout(() => {
+            resolve(true);
+        }, time);
+    });
+};
\ No newline at end of file

--
Gitblit v1.9.1