From 3bd07e5f90d5d832b8502252e1daebdd014320f8 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 19 三月 2025 10:28:49 +0800
Subject: [PATCH] Merge branch 'front' into devlop

---
 rsf-admin/src/page/basicInfo/loc/LocCreate.jsx |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx b/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
index 0602179..8d4bcf8 100644
--- a/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
+++ b/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
@@ -33,6 +33,7 @@
 
 const LocCreate = (props) => {
     const { open, setOpen } = props;
+    const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_loc_type')) || [];
 
     const translate = useTranslate();
     const notify = useNotify();
@@ -119,7 +120,7 @@
                                     />
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
-                                    <ReferenceInput
+                                    {/* <ReferenceInput
                                         source="type"
                                         reference="dictData"
                                         filter={{ dictTypeCode: 'sys_loc_type' }}
@@ -131,7 +132,16 @@
                                             parse={v => v}
                                             validate={[required()]}
                                         />
-                                    </ReferenceInput>
+                                    </ReferenceInput> */}
+                                    <AutocompleteInput
+                                        choices={dicts}
+                                        source="type"
+                                        optionText="label"
+                                        label="table.field.loc.type"
+                                        optionValue="value"
+                                        parse={v => v}
+                                        validate={[required()]}
+                                    />
                                 </Grid>
                                 {/* <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput

--
Gitblit v1.9.1