|
|
@ -5,14 +5,15 @@ import { communtity_data } from '../constants/index' |
|
|
|
|
|
|
|
function DataTop5({ communtityInfo }) { |
|
|
|
const content = <div className='rank_content_overflow'> |
|
|
|
{communtity_data.map(s => { |
|
|
|
let inuse = communtityInfo?.communityInUse?.find(v => v.houseCommunity == s.name)?.count || 0 |
|
|
|
// let unuse = communtityInfo?.communityUnUse?.find(v => v.houseCommunity == s.name)?.count || 0
|
|
|
|
return <div className='_rank_content'> |
|
|
|
<div className='_rank_item2'>{s?.name}</div> |
|
|
|
<div className='_rank_item3'>{parseInt(inuse)}</div> |
|
|
|
</div> |
|
|
|
})} |
|
|
|
{communtityInfo?.communityPersons |
|
|
|
?.filter(x => !!x.person_community) |
|
|
|
?.sort((a, b) => b.count - a.count) |
|
|
|
?.map(s => { |
|
|
|
return <div className='_rank_content'> |
|
|
|
<div className='_rank_item2'>{s?.person_community}</div> |
|
|
|
<div className='_rank_item3'>{parseInt(s?.count)}</div> |
|
|
|
</div> |
|
|
|
})} |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -20,7 +21,7 @@ function DataTop5({ communtityInfo }) { |
|
|
|
<div className='_traffic_ranking'> |
|
|
|
<div className='_rank_title'> |
|
|
|
<div className='_rank_item2'>社区名称</div> |
|
|
|
<div className='_rank_item3'>户数 / <span style={{ fontSize: 14 }}>户</span></div> |
|
|
|
<div className='_rank_item3'>人数 / <span style={{ fontSize: 14 }}>人</span></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<AutoRollComponent canScroll={true} content={content} data={[]} divHeight={200} divId={`community-right-bottom`} /> |
|
|
|