| | |
| | | setOpen(false); |
| | | notify("common.response.success"); |
| | | }; |
| | | const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_task_reset_type')) || []; |
| | | |
| | | const handleError = async (error) => { |
| | | notify(error.message || "common.response.fail", { |
| | |
| | | parse={(v) => v} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6} display="flex" gap={1}> |
| | | {/* <Grid item xs={6} display="flex" gap={1}> |
| | | <TextInput |
| | | label="table.field.serialRule.reset" |
| | | source="reset" |
| | | parse={(v) => v} |
| | | validate={required()} |
| | | /> |
| | | </Grid> */} |
| | | <Grid item xs={6} display="flex" gap={1}> |
| | | <AutocompleteInput |
| | | choices={dicts} |
| | | optionText="label" |
| | | label="table.field.serialRule.reset" |
| | | source="reset" |
| | | optionValue="value" |
| | | parse={v => v} |
| | | validate={[required()]} /> |
| | | </Grid> |
| | | <Grid item xs={6} display="flex" gap={1}> |
| | | <TextInput |