|
@ -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'; |
|
|