| | |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; |
| | | import * as Common from '@/utils/common'; |
| | | import useTableLayout from '@/utils/useTableLayout'; |
| | | import ChipArrayField from '@/page/components/ChipArrayField'; |
| | | |
| | | const filters = [ |
| | | <SearchInput source="condition" alwaysOn />, |
| | |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="stationAreaName" label="table.field.basStationArea.stationAreaName" /> |
| | | <NumberField source="area" label="table.field.basStationArea.area" /> |
| | | <TextField source="containerType" label="table.field.basStationArea.containerType" /> |
| | | <WrapperField cellClassName="crossZoneArea" label="table.field.basStationArea.crossZoneArea"> |
| | | <ChipArrayField |
| | | source="crossZoneArea" |
| | | apiEndpoint="/warehouseAreas/many/{ids}" |
| | | labelField="name" |
| | | dialogTitle={translate('table.field.basStationArea.crossZoneArea')} |
| | | initialDisplayCount={1} |
| | | placeholderText="{count} 个区域" |
| | | /> |
| | | </WrapperField> |
| | | <WrapperField cellClassName="containerType" label="table.field.basStationArea.containerType"> |
| | | <ChipArrayField |
| | | source="containerTypes" |
| | | apiEndpoint="/dictData/many/{ids}" |
| | | labelField="label" |
| | | dialogTitle={translate('table.field.basStationArea.containerType')} |
| | | initialDisplayCount={1} |
| | | placeholderText="{count} 个区域" |
| | | /> |
| | | </WrapperField> |
| | | <TextField source="stationAreaId" label="table.field.basStationArea.stationAreaId" /> |
| | | <TextField source="stationAlias" label="table.field.basStationArea.stationAlias" /> |
| | | |
| | | <WrapperField cellClassName="stationAlias" label="table.field.basStationArea.stationAlias"> |
| | | <ChipArrayField |
| | | source="stationAlias" |
| | | apiEndpoint="/basStations/many/{ids}" |
| | | labelField="stationName" |
| | | dialogTitle={translate('table.field.basStationArea.stationAlias')} |
| | | initialDisplayCount={1} |
| | | placeholderText="{count} 个区域" |
| | | /> |
| | | </WrapperField> |
| | | <ReferenceField source="updateBy" label="common.field.updateBy" reference="user" link={false} sortable={false}> |
| | | <TextField source="nickname" /> |
| | | </ReferenceField> |