From 99411967019bbf0d7b0b971eae0db2c2c58025f0 Mon Sep 17 00:00:00 2001
From: skyouc <958836976@qq.com>
Date: 星期六, 30 八月 2025 16:27:47 +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