Browse Source

今日预警

master
dengyinhuan 2 years ago
parent
commit
f9648cfb1b
  1. 25
      web/client/src/sections/shouye/containers/shouye.js

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

@ -139,28 +139,6 @@ const Information = (props) => {
<div>未处理{shijiandata.filter(i => i?.alarm === true && (i?.patrolRecordIssueHandles[0]?.state === 1 ||i?.patrolRecordIssueHandles.length==0)).length}</div>
</div>
</div>
<div className='shouyetopitem'>
<div className='shouyetopitem-left' >
<div>今日预警</div>
<div>{shijiandata.filter(i=>{
return i?.patrolRecordIssueHandles[0]?.yanshoucishu>2&&i?.patrolRecordIssueHandles[0]?.isgaojing!==true
&&shijiandata?.filter(j=>j?.pointId===i?.pointId&&j?.points?.project?.id===i?.points?.project?.id
&&j?.patrolRecordIssueHandles[0]?.yujingshijian
&&i?.patrolRecordIssueHandles[0]?.yujingshijian&&moment(i?.patrolRecordIssueHandles[0]?.yujingshijian).format
('YYYYMMDD') === moment().format('YYYYMMDD')
&&moment(i?.patrolRecordIssueHandles[0].yanshoushijian).valueOf()<moment(j?.patrolRecordIssueHandles[0]?.yanshoushijian).valueOf()
).length===0
}).length}</div>
</div>
<div className='shouyetopitem-right'>
<div>已下发{shijiandata.filter(i=>{
return i?.patrolRecordIssueHandles[0]?.isgaojing===true&&i?.patrolRecordIssueHandles[0]?.yujingafchishu===null
&&i?.patrolRecordIssueHandles[0]?.yujingshijian
&&moment(i?.patrolRecordIssueHandles[0]?.yujingshijian).format
('YYYYMMDD') === moment().format('YYYYMMDD')
}).length}</div>
</div>
</div>
<div className='shouyetopitem'>
<div className='shouyetopitem-left' >
@ -169,8 +147,7 @@ const Information = (props) => {
return i?.patrolRecordIssueHandles[0]?.yanshoucishu>2&&moment(i?.patrolRecordIssueHandles[0]?.yujingshijian).format('YYYYMMDD') === moment().format('YYYYMMDD')
&&res?.payload?.data?.filter(j=>j?.pointId===i?.pointId&&j?.points?.project?.id===i?.points?.project?.id
&&j?.patrolRecordIssueHandles[0]?.yujingshijian
&&i?.patrolRecordIssueHandles[0]?.yujingshijian
&&moment(i?.patrolRecordIssueHandles[0].yanshoushijian).valueOf()<moment(j?.patrolRecordIssueHandles[0]?.yanshoushijian).valueOf()
).length===0
}).length }</div>

Loading…
Cancel
Save