File was renamed from rsf-admin/src/page/system/dicts/dictData/DictDataCreate.jsx |
| | |
| | | import MemoInput from "../../../components/MemoInput"; |
| | | |
| | | const DictDataCreate = (props) => { |
| | | const { open, setOpen, row } = props; |
| | | |
| | | const { open, setOpen, record } = props; |
| | | const translate = useTranslate(); |
| | | const notify = useNotify(); |
| | | |
| | |
| | | return ( |
| | | <> |
| | | <CreateBase |
| | | resource="dictData" |
| | | record={{}} |
| | | transform={(data) => { |
| | | return data; |
| | |
| | | <TextInput |
| | | label="table.field.dictData.dictTypeId" |
| | | source="dictTypeId" |
| | | defaultValue={record?.id} |
| | | parse={v => v} |
| | | autoFocus |
| | | readOnly |
| | | validate={required()} |
| | | defaultValue={row.dictTypeId} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6} display="flex" gap={1}> |
| | |
| | | label="table.field.dictData.dictTypeCode" |
| | | source="dictTypeCode" |
| | | parse={v => v} |
| | | readOnly |
| | | defaultValue={record?.code} |
| | | validate={required()} |
| | | defaultValue={row.dictTypeCode} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6} display="flex" gap={1}> |
| | |
| | | <TextInput |
| | | label="table.field.dictData.label" |
| | | validate={required()} |
| | | autoFocus |
| | | source="label" |
| | | parse={v => v} |
| | | /> |