|  |  | 
 |  |  | 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"} | 
 |  |  |                     empty={<EmptyData onClick={() => { setCreateDialog(true) }} />} | 
 |  |  |                     empty={false} | 
 |  |  |                     filters={filters} | 
 |  |  |                     filter={{ dictTypeId: dictId }} | 
 |  |  |                     sort={{ field: "create_time", order: "desc" }} | 
 |  |  | 
 |  |  |                             <MyExportButton /> | 
 |  |  |                         </TopToolbar> | 
 |  |  |                     )} | 
 |  |  |                     perPage={DEFAULT_PAGE_SIZE} | 
 |  |  |                     perPage={DEFAULT_ITEM_PAGE_SIZE} | 
 |  |  |                 > | 
 |  |  |                     <StyledDatagrid | 
 |  |  |                         bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} | 
 |  |  |                         rowClick={(id, resource ,record)=> { | 
 |  |  |                         rowClick={(id, resource, record) => { | 
 |  |  |                             setSelect(record) | 
 |  |  |                             setEditDialog(true) | 
 |  |  |                         }} | 
 |  |  | 
 |  |  |                         <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"> | 
 |  |  |                             {/* <EditButton sx={{ padding: '1px', fontSize: '.75rem' }}  type="button" redirect={"/dictType/" + dictId} onClick={()=> {                                | 
 |  |  |                                setEditDialog(true) | 
 |  |  |                             }} /> */} | 
 |  |  |                             <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> |