|  |  | 
 |  |  |     setOpen(false); | 
 |  |  |     notify("common.response.success"); | 
 |  |  |   }; | 
 |  |  |   const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_rule_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 | 
 |  |  | 
 |  |  |                 zIndex: 1000, | 
 |  |  |               }} | 
 |  |  |             > | 
 |  |  |               <Toolbar sx={{ width: "100%", justifyContent: "space-between" }}> | 
 |  |  |               <Toolbar sx={{ width: "100%", justifyContent: "end" }}> | 
 |  |  |                 <SaveButton /> | 
 |  |  |               </Toolbar> | 
 |  |  |             </DialogActions> |