Browse Source

fix 10392 巡检记录-筛选以后翻页信息显示错误

master
liujiangyong 1 year ago
parent
commit
b1729ccc7d
  1. 13
      web/client/src/sections/patrolManage/containers/patrolRecord.js

13
web/client/src/sections/patrolManage/containers/patrolRecord.js

@ -174,18 +174,7 @@ const PatrolRecord = (props) => {
dataSource={tableList} dataSource={tableList}
pagination={{ pagination={{
className: 'global-pagination', className: 'global-pagination',
current: query.page + 1, showTotal: (total, range) => `${range[0]}-${range[1]} 条/总共 ${total}`
total: limits,
showSizeChanger: true,
showQuickJumper: true,
pageSizeOptions: [10, 20, 50],
showTotal: (total) => {
return <span style={{ fontSize: 15 }}>{`${Math.ceil(total / query?.limit)}页,${total}`}</span>
},
onChange: (page, pageSize) => {
setQuery({ limit: pageSize, page: page - 1 });
record({ limit: pageSize, page: page - 1, ...search, companyId: search?.companyId })
}
}} }}
rowClassName={(record, index) => { rowClassName={(record, index) => {
let className = 'global-light-row'; let className = 'global-light-row';

Loading…
Cancel
Save