|  |  | 
 |  |  | import MyCreateButton from "../../../components/MyCreateButton"; | 
 |  |  | import MyExportButton from '../../../components/MyExportButton'; | 
 |  |  | import PageDrawer from "../../../components/PageDrawer"; | 
 |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; | 
 |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE, DEFAULT_ITEM_PAGE_SIZE } from '@/config/setting'; | 
 |  |  | import DictDataEdit from "./DictDataEdit"; | 
 |  |  | import { use } from "react"; | 
 |  |  |  | 
 |  |  | 
 |  |  |                             }), | 
 |  |  |                         marginRight: drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0, | 
 |  |  |                     }} | 
 |  |  |                     title={"menu.dictData"} | 
 |  |  |                     title={false} | 
 |  |  |                     empty={false} | 
 |  |  |                     filters={filters} | 
 |  |  |                     filter={{ dictTypeId: dictId }} | 
 |  |  |                     sort={{ field: "create_time", order: "desc" }} | 
 |  |  |                     sort={{ field: "sort", order: "asc" }} | 
 |  |  |                     actions={( | 
 |  |  |                         <TopToolbar> | 
 |  |  |                             <FilterButton /> | 
 |  |  | 
 |  |  |                             <MyExportButton /> | 
 |  |  |                         </TopToolbar> | 
 |  |  |                     )} | 
 |  |  |                     perPage={DEFAULT_PAGE_SIZE} | 
 |  |  |                     perPage={DEFAULT_ITEM_PAGE_SIZE} | 
 |  |  |                 > | 
 |  |  |                     <StyledDatagrid | 
 |  |  |                         bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} | 
 |  |  | 
 |  |  |                             setSelect(record) | 
 |  |  |                             setEditDialog(true) | 
 |  |  |                         }} | 
 |  |  |                         omit={['id', 'createTime', 'createBy', 'memo']} | 
 |  |  |                         omit={['id', 'createTime', 'createBy$', 'memo', 'statusBool']} | 
 |  |  |                     > | 
 |  |  |                         <NumberField source="id" /> | 
 |  |  |                         <TextField source="dictTypeId" label="table.field.dictData.dictTypeId" /> | 
 |  |  |                         <TextField source="dictTypeCode" label="table.field.dictData.dictTypeCode" /> | 
 |  |  |                         <TextField source="value" label="table.field.dictData.value" /> | 
 |  |  |                         <TextField source="label" label="table.field.dictData.label" /> | 
 |  |  |                         <TextField source="group" label="table.field.dictData.group" /> | 
 |  |  |                         <NumberField source="sort" label="table.field.dictData.sort" /> | 
 |  |  |                         <TextField source="updateBy$" label="common.field.updateBy" /> | 
 |  |  |                         <DateField source="updateTime" label="common.field.updateTime" showTime /> | 
 |  |  | 
 |  |  |                         <BooleanField source="statusBool" label="common.field.status" sortable={false} /> | 
 |  |  |                         <TextField source="memo" label="common.field.memo" sortable={false} /> | 
 |  |  |                         <WrapperField cellClassName="opt" label="common.field.opt"> | 
 |  |  |                             <Button onClick={() => { setEditDialog(true) }}>编辑</Button> | 
 |  |  |                             <Button onClick={() => { setEditDialog(true) }} label="ra.action.edit"></Button> | 
 |  |  |                             <DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode='pessimistic' redirect={"/dictType/" + dictId} /> | 
 |  |  |                         </WrapperField> | 
 |  |  |                     </StyledDatagrid> | 
 |  |  | 
 |  |  |                     setOpen={setCreateDialog} | 
 |  |  |                 /> | 
 |  |  |                 <PageDrawer | 
 |  |  |                     title='DictData Detail' | 
 |  |  |                     title={false} | 
 |  |  |                     drawerVal={drawerVal} | 
 |  |  |                     setDrawerVal={setDrawerVal} | 
 |  |  |                 > |