From 5e04e38c4dd5e2cc184ef84380a76edd70ccd727 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 23 九月 2024 15:06:21 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/bus/BusList.jsx | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/zy-acs-flow/src/page/bus/BusList.jsx b/zy-acs-flow/src/page/bus/BusList.jsx
index 9be3b02..f0284c5 100644
--- a/zy-acs-flow/src/page/bus/BusList.jsx
+++ b/zy-acs-flow/src/page/bus/BusList.jsx
@@ -31,6 +31,7 @@
AutocompleteInput,
DeleteButton,
FunctionField,
+ Pagination,
} from 'react-admin';
import { Box, Typography, Card, Chip } from '@mui/material';
import { styled } from '@mui/material/styles';
@@ -120,6 +121,7 @@
<MyExportButton />
</TopToolbar>
)}
+ pagination={<Pagination rowsPerPageOptions={[10, 20, 50, 100]} />}
perPage={20}
// aside={<BusListAside />}
>
@@ -134,7 +136,7 @@
<NumberField source="id" />
<TextField source="uuid" label="table.field.bus.uuid" />
<TextField source="busNo" label="table.field.bus.busNo" />
- <ReferenceField source="busSts" label="table.field.bus.busSts" reference="busSts" link={false} sortable={false}>
+ <ReferenceField source="busSts" label="table.field.bus.busSts" reference="busSts" link={false} sortable={true}>
<FunctionField render={record => (
<Chip
label={record.name}
--
Gitblit v1.9.1