| | |
| | | import MyField from "../components/MyField"; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; |
| | | import * as Common from '@/utils/common'; |
| | | import LaneDeleteAllButton from "./LaneDeleteAllButton"; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | | '& .css-1vooibu-MuiSvgIcon-root': { |
| | |
| | | |
| | | const filters = [ |
| | | <SearchInput source="condition" alwaysOn />, |
| | | <DateInput label='common.time.after' source="timeStart" alwaysOn />, |
| | | <DateInput label='common.time.before' source="timeEnd" alwaysOn />, |
| | | // <DateInput label='common.time.after' source="timeStart" alwaysOn />, |
| | | // <DateInput label='common.time.before' source="timeEnd" alwaysOn />, |
| | | |
| | | <TextInput source="uuid" label="table.field.lane.uuid" />, |
| | | // <TextInput source="uuid" label="table.field.lane.uuid" />, |
| | | <ReferenceInput source="zoneId" label="table.field.lane.zoneId" reference="zone"> |
| | | <AutocompleteInput label="table.field.lane.zoneId" optionText="name" filterToQuery={(val) => ({ name: val })} /> |
| | | </ReferenceInput>, |
| | | <TextInput source="name" label="table.field.lane.name" />, |
| | | <TextInput source="hashCode" label="table.field.lane.hashCode" />, |
| | | <TextInput source="codes" label="table.field.lane.codes" />, |
| | | <NumberInput source="entryAngle" label="table.field.lane.entryAngle" />, |
| | | <NumberInput source="maximum" label="table.field.lane.maximum" />, |
| | | // <TextInput source="name" label="table.field.lane.name" />, |
| | | // <TextInput source="hashCode" label="table.field.lane.hashCode" />, |
| | | // <TextInput source="codes" label="table.field.lane.codes" />, |
| | | // <NumberInput source="entryAngle" label="table.field.lane.entryAngle" />, |
| | | // <NumberInput source="maximum" label="table.field.lane.maximum" />, |
| | | |
| | | <TextInput label="common.field.memo" source="memo" />, |
| | | <SelectInput |
| | |
| | | { id: '0', name: 'common.enums.statusFalse' }, |
| | | ]} |
| | | resettable |
| | | alwaysOn |
| | | />, |
| | | ] |
| | | |
| | |
| | | sort={{ field: "create_time", order: "desc" }} |
| | | actions={( |
| | | <TopToolbar> |
| | | <FilterButton /> |
| | | {/* <FilterButton /> */} |
| | | {/* <MyCreateButton onClick={() => { setCreateDialog(true) }} /> */} |
| | | <LaneDeleteAllButton /> |
| | | <SelectColumnsButton preferenceKey='lane' /> |
| | | <MyExportButton /> |
| | | </TopToolbar> |