| | |
| | | import MyExportButton from '../components/MyExportButton'; |
| | | import PageDrawer from "../components/PageDrawer"; |
| | | import MyField from "../components/MyField"; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE } from '@/config/setting'; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; |
| | | import * as Common from '@/utils/common'; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | |
| | | <DateInput label='common.time.before' source="timeEnd" alwaysOn />, |
| | | |
| | | <ReferenceInput source="code0" label="table.field.codeGap.code0" reference="code" alwaysOn> |
| | | <AutocompleteInput label="table.field.codeGap.code0" optionText="data" /> |
| | | <AutocompleteInput label="table.field.codeGap.code0" optionText="data" filterToQuery={(val) => ({ data: val })} /> |
| | | </ReferenceInput>, |
| | | <ReferenceInput source="code1" label="table.field.codeGap.code1" reference="code" alwaysOn> |
| | | <AutocompleteInput label="table.field.codeGap.code1" optionText="data" /> |
| | | <AutocompleteInput label="table.field.codeGap.code1" optionText="data" filterToQuery={(val) => ({ data: val })} /> |
| | | </ReferenceInput>, |
| | | <NumberInput source="distance" label="table.field.codeGap.distance" />, |
| | | |
| | |
| | | <MyExportButton /> |
| | | </TopToolbar> |
| | | )} |
| | | perPage={25} |
| | | perPage={DEFAULT_PAGE_SIZE} |
| | | > |
| | | <StyledDatagrid |
| | | preferenceKey='codeGap' |