| | |
| | | import DialogCloseButton from "../components/DialogCloseButton"; |
| | | import StatusSelectInput from "../components/StatusSelectInput"; |
| | | import MemoInput from "../components/MemoInput"; |
| | | import { buildDirectionChoices } from './direction'; |
| | | |
| | | const IntegrationRecordCreate = (props) => { |
| | | const { open, setOpen } = props; |
| | | |
| | | const translate = useTranslate(); |
| | | const notify = useNotify(); |
| | | const directionChoices = useMemo(() => buildDirectionChoices(translate), [translate]); |
| | | |
| | | const handleClose = (event, reason) => { |
| | | if (reason !== "backdropClick") { |
| | |
| | | <SelectInput |
| | | label="table.field.integrationRecord.direction" |
| | | source="direction" |
| | | choices={[ |
| | | { id: 1, name: '被调用' }, |
| | | { id: 2, name: '调用外部' }, |
| | | ]} |
| | | choices={directionChoices} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6} display="flex" gap={1}> |