|  |  |  | 
|---|
|  |  |  | 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'; | 
|---|
|  |  |  | import ImportButton from '../components/ImportButton' | 
|---|
|  |  |  | import { useRouteImport } from './useRouteImport'; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <TextInput source="uuid" label="table.field.route.uuid" />, | 
|---|
|  |  |  | <TextInput source="name" label="table.field.route.name" />, | 
|---|
|  |  |  | <ReferenceInput source="startCode" label="table.field.route.startCode" reference="code"> | 
|---|
|  |  |  | <ReferenceInput source="startCode" label="table.field.route.startCode" reference="code" alwaysOn> | 
|---|
|  |  |  | <AutocompleteInput label="table.field.route.startCode" optionText="data" filterToQuery={(val) => ({ data: val })} /> | 
|---|
|  |  |  | </ReferenceInput>, | 
|---|
|  |  |  | <ReferenceInput source="endCode" label="table.field.route.endCode" reference="code"> | 
|---|
|  |  |  | <ReferenceInput source="endCode" label="table.field.route.endCode" reference="code" alwaysOn> | 
|---|
|  |  |  | <AutocompleteInput label="table.field.route.endCode" optionText="data" filterToQuery={(val) => ({ data: val })} /> | 
|---|
|  |  |  | </ReferenceInput>, | 
|---|
|  |  |  | <TextInput source="codeArr" label="table.field.route.codeArr" />, | 
|---|
|  |  |  | 
|---|
|  |  |  | { id: 1, name: '正向' }, | 
|---|
|  |  |  | { id: 2, name: '反向' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | alwaysOn | 
|---|
|  |  |  | />, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <TextInput label="common.field.memo" source="memo" />, | 
|---|
|  |  |  | 
|---|
|  |  |  | <MyExportButton /> | 
|---|
|  |  |  | </TopToolbar> | 
|---|
|  |  |  | )} | 
|---|
|  |  |  | perPage={25} | 
|---|
|  |  |  | perPage={DEFAULT_PAGE_SIZE} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <StyledDatagrid | 
|---|
|  |  |  | preferenceKey='route' | 
|---|