|  |  | 
 |  |  | 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 RepartitionIcon from '@mui/icons-material/Repartition'; | 
 |  |  | import CorporateFareIcon from '@mui/icons-material/CorporateFare'; | 
 |  |  | import LocInit from "./LocInit"; | 
 |  |  | import rowSx from "./rowSx"; | 
 |  |  |  | 
 |  |  | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ | 
 |  |  |     '& .css-1vooibu-MuiSvgIcon-root': { | 
 |  |  | 
 |  |  |                         <FilterButton /> | 
 |  |  |                         <Button label='page.loc.init' onClick={(event) => { | 
 |  |  |                             setInitDialog(true); | 
 |  |  |                         }}><RepartitionIcon /></Button> | 
 |  |  |                         }}><CorporateFareIcon /></Button> | 
 |  |  |                         <MyCreateButton onClick={() => { setCreateDialog(true) }} /> | 
 |  |  |                         <SelectColumnsButton preferenceKey='loc' /> | 
 |  |  |                         <MyExportButton /> | 
 |  |  |                     </TopToolbar> | 
 |  |  |                 )} | 
 |  |  |                 perPage={25} | 
 |  |  |                 perPage={DEFAULT_PAGE_SIZE} | 
 |  |  |             > | 
 |  |  |                 <StyledDatagrid | 
 |  |  |                     preferenceKey='loc' | 
 |  |  | 
 |  |  |                     expand={() => <LocPanel />} | 
 |  |  |                     expandSingle={true} | 
 |  |  |                     omit={['id', 'locType', 'uuid', 'statusBool', 'updateBy', 'createTime', 'createBy', 'memo']} | 
 |  |  |                     rowSx={rowSx(drawerVal || null)} | 
 |  |  |                 > | 
 |  |  |                     <NumberField source="id" /> | 
 |  |  |                     <TextField source="locNo" label="table.field.loc.locNo" /> |