From b1729ccc7dbf5a60a8b43d04c467f2f505e5142f Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Wed, 17 May 2023 10:27:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=2010392=20=E5=B7=A1=E6=A3=80=E8=AE=B0?= =?UTF-8?q?=E5=BD=95-=E7=AD=9B=E9=80=89=E4=BB=A5=E5=90=8E=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../patrolManage/containers/patrolRecord.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/web/client/src/sections/patrolManage/containers/patrolRecord.js b/web/client/src/sections/patrolManage/containers/patrolRecord.js index e1fd554..6fb7668 100644 --- a/web/client/src/sections/patrolManage/containers/patrolRecord.js +++ b/web/client/src/sections/patrolManage/containers/patrolRecord.js @@ -174,18 +174,7 @@ const PatrolRecord = (props) => { dataSource={tableList} pagination={{ className: 'global-pagination', - current: query.page + 1, - total: limits, - showSizeChanger: true, - showQuickJumper: true, - pageSizeOptions: [10, 20, 50], - showTotal: (total) => { - return {`共${Math.ceil(total / query?.limit)}页,${total}项`} - }, - onChange: (page, pageSize) => { - setQuery({ limit: pageSize, page: page - 1 }); - record({ limit: pageSize, page: page - 1, ...search, companyId: search?.companyId }) - } + showTotal: (total, range) => `第 ${range[0]}-${range[1]} 条/总共 ${total} 条` }} rowClassName={(record, index) => { let className = 'global-light-row';