|
@ -126,7 +126,7 @@ const PatrolRecord = (props) => { |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div id='patrol-record'> |
|
|
<div id='patrol-record' className='global-main'> |
|
|
<div style={{ display: 'flex', justifyContent: 'space-between', padding: '0 10px' }}> |
|
|
<div style={{ display: 'flex', justifyContent: 'space-between', padding: '0 10px' }}> |
|
|
<Form |
|
|
<Form |
|
|
style={{ display: 'flex', }} |
|
|
style={{ display: 'flex', }} |
|
@ -182,10 +182,15 @@ const PatrolRecord = (props) => { |
|
|
return <span style={{ fontSize: 15 }}>{`共${Math.ceil(total / query?.limit)}页,${total}项`}</span> |
|
|
return <span style={{ fontSize: 15 }}>{`共${Math.ceil(total / query?.limit)}页,${total}项`}</span> |
|
|
}, |
|
|
}, |
|
|
onChange: (page, pageSize) => { |
|
|
onChange: (page, pageSize) => { |
|
|
setQuery({ limit: pageSize, page: page - 1 }); |
|
|
setQuery({ limit: pageSize, page: page - 1 }); |
|
|
record({ limit: pageSize, page: page - 1, ...search, companyId: search?.companyId }) |
|
|
record({ limit: pageSize, page: page - 1, ...search, companyId: search?.companyId }) |
|
|
} |
|
|
} |
|
|
}} |
|
|
}} |
|
|
|
|
|
rowClassName={(record, index) => { |
|
|
|
|
|
let className = 'global-light-row'; |
|
|
|
|
|
if (index % 2 === 1) className = 'global-dark-row'; |
|
|
|
|
|
return className; |
|
|
|
|
|
}} |
|
|
/> |
|
|
/> |
|
|
<Modal |
|
|
<Modal |
|
|
title='巡检记录详情' |
|
|
title='巡检记录详情' |
|
@ -270,7 +275,7 @@ const PatrolRecord = (props) => { |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function mapStateToProps (state) { |
|
|
function mapStateToProps(state) { |
|
|
const { auth, global } = state; |
|
|
const { auth, global } = state; |
|
|
return { |
|
|
return { |
|
|
user: auth.user, |
|
|
user: auth.user, |
|
|