| | |
| | | |
| | | const SerialRuleEdit = () => { |
| | | const translate = useTranslate(); |
| | | const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_task_reset_type')) || []; |
| | | |
| | | return ( |
| | | <> |
| | |
| | | /> |
| | | </Stack> |
| | | <Stack direction='row' gap={2}> |
| | | <TextInput |
| | | <AutocompleteInput |
| | | choices={dicts} |
| | | optionText="label" |
| | | label="table.field.serialRule.reset" |
| | | source="reset" |
| | | optionValue="value" |
| | | parse={v => v} |
| | | validate={required()} |
| | | /> |
| | | validate={[required()]} /> |
| | | <TextInput |
| | | label="table.field.serialRule.resetDep" |
| | | source="resetDep" |