From cf452503f0005ced724291a50e98d67711a7e4d4 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 11 十月 2024 14:57:35 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/settings/CopyDrawer.jsx |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/zy-acs-flow/src/map/settings/CopyDrawer.jsx b/zy-acs-flow/src/map/settings/CopyDrawer.jsx
index b57882d..d7561b9 100644
--- a/zy-acs-flow/src/map/settings/CopyDrawer.jsx
+++ b/zy-acs-flow/src/map/settings/CopyDrawer.jsx
@@ -34,14 +34,16 @@
 
     const { control, handleSubmit, reset, watch, setValue, formState: { errors } } = useForm({
         defaultValues: {
-            copyDirect: value?.copyDirect || '',
-            copyCount: value?.copyCount || '',
+            // copyDirect: value?.copyDirect || '',
+            // copyCount: value?.copyCount || '',
             gap: value?.gap || 0.0,
         },
     });
 
     useEffect(() => {
         if (value && Object.keys(value).length > 0) {
+            setValue('copyDirect', value.copyDirect);
+            setValue('copyCount', value.copyCount);
         }
     }, [value, setValue])
 
@@ -88,6 +90,17 @@
                                 <Grid container spacing={1.4}>
 
                                     <Grid item xs={6}>
+                                        <Typography variant="body1">
+                                            {translate('page.map.settings.map.copy.direction')}: {value?.copyDirect}
+                                        </Typography>
+                                    </Grid>
+                                    <Grid item xs={6}>
+                                        <Typography variant="body1">
+                                            {translate('page.map.settings.map.copy.count')}: {value?.copyCount}
+                                        </Typography>
+                                    </Grid>
+
+                                    {/* <Grid item xs={6}>
                                         <Controller
                                             name="copyDirect"
                                             control={control}
@@ -103,7 +116,6 @@
                                             )}
                                         />
                                     </Grid>
-
                                     <Grid item xs={6}>
                                         <Controller
                                             name="copyCount"
@@ -119,7 +131,7 @@
                                                 />
                                             )}
                                         />
-                                    </Grid>
+                                    </Grid> */}
 
                                     <Grid item xs={12}>
                                         <Controller

--
Gitblit v1.9.1