Browse Source

首页顶部的数据接入

master
dengyinhuan 2 years ago
parent
commit
29b1078e75
  1. 12
      web/client/src/sections/shouye/containers/shouye.js

12
web/client/src/sections/shouye/containers/shouye.js

@ -45,7 +45,7 @@ const Information = (props) => {
})
},[])
console.log(xunjiandata,'xunjiandata')
// console.log(shijiandata.filter(i=>i?.alarm===true&&i?.patrolRecordIssueHandles[0]?.state===1),'拒绝了')
return (
<>
<div className='shouyetop'>
@ -65,17 +65,19 @@ const Information = (props) => {
<div>{xunjiandata.filter(i=>i?.alarm===true).length}</div>
</div>
<div className='shouyetopitem-right'>
<div>已处理</div>
<div>未处理2</div>
<div>已处理{shijiandata.filter(i=>i?.patrolRecordIssueHandles[0]?.yanshoushijian&&parseInt(moment(i?.patrolRecordIssueHandles[0]?.yanshoushijian).format('YYYYMMDD'))===parseInt(moment().format('YYYYMMDD'))).length}</div>
<div>未处理{shijiandata.filter(i=>i?.alarm===true&&i?.patrolRecordIssueHandles[0]?.state===1).length}</div>
</div>
</div>
<div className='shouyetopitem'>
<div className='shouyetopitem-left' >
<div>今日预警</div>
<div>0</div>
<div>{shijiandata.filter(i=>i?.alarm===true&&i?.patrolRecordIssueHandles[0]?.yujingshijian && moment(i?.patrolRecordIssueHandles[0]?.yujingshijian).format
('YYYYMMDD')===moment().format('YYYYMMDD')&&i?.patrolRecordIssueHandles[0]?.isgaojing!==true).length}</div>
</div>
<div className='shouyetopitem-right'>
<div>已下发2</div>
<div>已下发{shijiandata.filter(i=>i?.alarm===true&&i?.patrolRecordIssueHandles[0]?.yujingshijian && moment(i?.patrolRecordIssueHandles[0]?.yujingshijian).format
('YYYYMMDD')===moment().format('YYYYMMDD')&&i?.patrolRecordIssueHandles[0]?.isgaojing===true).length}</div>
</div>
</div>
</div>

Loading…
Cancel
Save