From 9b40623f9dda66ae89188e0f915d1f3d07c7b9a1 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 26 三月 2024 15:23:27 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/components/configSettings.jsx |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/components/configSettings.jsx b/zy-asrs-flow/src/pages/map/components/configSettings.jsx
index e92b23d..14417e9 100644
--- a/zy-asrs-flow/src/pages/map/components/configSettings.jsx
+++ b/zy-asrs-flow/src/pages/map/components/configSettings.jsx
@@ -94,7 +94,8 @@
         // execute where the form was finished
         const confirmSettings = () => {
             if (curSprite && curSprite?.data?.type) {
-                curSprite.data = { ...curSprite.data, ...values }
+                curSprite.data = { ...curSprite.data, ...values };
+                Utils.showSheflType(curSprite);
             }
             message.success(intl.formatMessage({ id: 'common.success', defaultMessage: '鎿嶄綔鎴愬姛' }));
         }
@@ -135,7 +136,7 @@
                     <span>{curSprite?.data?.type}</span>
                 </Form.Item>
                 <Form.Item
-                    label={intl.formatMessage({ id: 'map.settings.uuid', defaultMessage: '鍦板浘鍙�' })}
+                    label={intl.formatMessage({ id: 'map.settings.uuid', defaultMessage: '鍥惧彿' })}
                 >
                     <span>{curSprite?.data?.uuid}</span>
                 </Form.Item>
@@ -200,15 +201,15 @@
                                 options={[
                                     {
                                         label: intl.formatMessage({ id: 'map.settings.shelf.store', defaultMessage: '搴撲綅' }),
-                                        value: 0
+                                        value: Utils.SHELF_TYPE.STORE
                                     },
                                     {
                                         label: intl.formatMessage({ id: 'map.settings.shelf.track', defaultMessage: '杞ㄩ亾' }),
-                                        value: 3
+                                        value: Utils.SHELF_TYPE.TRACK
                                     },
                                     {
                                         label: intl.formatMessage({ id: 'map.settings.shelf.diable', defaultMessage: '绂佺敤' }),
-                                        value: 1
+                                        value: Utils.SHELF_TYPE.DISABLE
                                     },
                                 ]}
                                 defaultValue={0}
@@ -273,11 +274,6 @@
                         <Form.Item
                             name='value'
                             label={intl.formatMessage({ id: 'map.settings.shelf.value', defaultMessage: '鍦板浘鍊�' })}
-                            rules={[
-                                {
-                                    required: false,
-                                },
-                            ]}
                         >
                             <Input
                                 style={{

--
Gitblit v1.9.1