| | |
| | | import DictionaryArraySelect from "../../components/DictionaryArraySelect"; |
| | | |
| | | const BasStationCreate = (props) => { |
| | | const { open, setOpen } = props; |
| | | const { open, setOpen , copyRecord = null, onClose} = props; |
| | | |
| | | const translate = useTranslate(); |
| | | const notify = useNotify(); |
| | |
| | | const handleClose = (event, reason) => { |
| | | if (reason !== "backdropClick") { |
| | | setOpen(false); |
| | | if (typeof onClose === 'function') {onClose();} |
| | | } |
| | | }; |
| | | |
| | |
| | | return ( |
| | | <> |
| | | <CreateBase |
| | | record={{}} |
| | | key={open ? (copyRecord ? 'copy' : 'new') : 'closed'} |
| | | record={copyRecord || {}} |
| | | transform={(data) => { |
| | | return data; |
| | | }} |