From cd67e854d4715bc92a16dc7bffdbde7be1da9957 Mon Sep 17 00:00:00 2001 From: vincentlu <t1341870251@gmail.com> Date: 星期四, 27 三月 2025 13:02:37 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/loc/LocList.jsx | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/zy-acs-flow/src/page/loc/LocList.jsx b/zy-acs-flow/src/page/loc/LocList.jsx index 753e1f2..83bdbc5 100644 --- a/zy-acs-flow/src/page/loc/LocList.jsx +++ b/zy-acs-flow/src/page/loc/LocList.jsx @@ -31,6 +31,7 @@ AutocompleteInput, DeleteButton, Button, + Pagination, } from 'react-admin'; import { Box, Typography, Card, Stack } from '@mui/material'; import { styled } from '@mui/material/styles'; @@ -46,7 +47,8 @@ import CorporateFareIcon from '@mui/icons-material/CorporateFare'; import LocInit from "./LocInit"; import rowSx from "./rowSx"; -import BulkUpdateButton from "./BulkUpdateButton"; +import BulkUpdateButton from "../components/BulkUpdateButton"; +import LocBulkUpdateContent from './LocBulkUpdateContent'; const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ '& .css-1vooibu-MuiSvgIcon-root': { @@ -103,7 +105,9 @@ const LocBulkActionButtons = () => { return ( <> - <BulkUpdateButton /> + <BulkUpdateButton> + <LocBulkUpdateContent /> + </BulkUpdateButton> <BulkDeleteButton mutationMode={OPERATE_MODE} /> </> ); @@ -143,7 +147,8 @@ <MyExportButton /> </TopToolbar> )} - perPage={DEFAULT_PAGE_SIZE} + pagination={<Pagination rowsPerPageOptions={[10, 20, 50, 100, 300, 500]} />} + perPage={20} > <StyledDatagrid preferenceKey='loc' -- Gitblit v1.9.1