| | |
| | | import CustomerTopToolBar from "../components/EditTopToolBar"; |
| | | import MemoInput from "../components/MemoInput"; |
| | | import StatusSelectInput from "../components/StatusSelectInput"; |
| | | import { buildDirectionChoices } from './direction'; |
| | | |
| | | const FormToolbar = () => { |
| | | const { getValues } = useFormContext(); |
| | |
| | | |
| | | const IntegrationRecordEdit = () => { |
| | | const translate = useTranslate(); |
| | | const directionChoices = useMemo(() => buildDirectionChoices(translate), [translate]); |
| | | |
| | | return ( |
| | | <Edit |
| | |
| | | <SelectInput |
| | | label="table.field.integrationRecord.direction" |
| | | source="direction" |
| | | choices={[ |
| | | { id: 1, name: '被调用' }, |
| | | { id: 2, name: '调用外部' }, |
| | | ]} |
| | | choices={directionChoices} |
| | | validate={required()} |
| | | /> |
| | | </Stack> |