From b103e4b52215a8178adb05fe501a719ee4be235f Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 19 八月 2025 08:28:29 +0800
Subject: [PATCH] 接口数据同步

---
 rsf-admin/src/page/waveRule/WaveRuleCreate.jsx |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/rsf-admin/src/page/waveRule/WaveRuleCreate.jsx b/rsf-admin/src/page/waveRule/WaveRuleCreate.jsx
index 2cb1f91..25a01d6 100644
--- a/rsf-admin/src/page/waveRule/WaveRuleCreate.jsx
+++ b/rsf-admin/src/page/waveRule/WaveRuleCreate.jsx
@@ -33,7 +33,7 @@
 
 const WaveRuleCreate = (props) => {
     const { open, setOpen } = props;
-
+    const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_wave_rule_code')) || [];
     const translate = useTranslate();
     const notify = useNotify();
 
@@ -85,18 +85,14 @@
                         <DialogContent sx={{ mt: 2 }}>
                             <Grid container rowSpacing={2} columnSpacing={2}>
                                 <Grid item xs={6} display="flex" gap={1}>
-                                    <TextInput
-                                        label="table.field.waveRule.code"
-                                        source="code"
-                                        parse={v => v}
-                                        autoFocus
-                                    />
-                                </Grid>
-                                <Grid item xs={6} display="flex" gap={1}>
-                                    <NumberInput
+                                    <AutocompleteInput
+                                        choices={dicts}
+                                        optionText="label"
                                         label="table.field.waveRule.type"
                                         source="type"
-                                    />
+                                        optionValue="value"
+                                        parse={v => v}
+                                        validate={[required()]} />
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput

--
Gitblit v1.9.1