Browse Source

添加首页的未处理

master
dengyinhuan 2 years ago
parent
commit
c630bc87ec
  1. 2
      api/app/lib/controllers/patrolManage/yujingguanli.js
  2. 2
      web/client/src/sections/shouye/containers/shouye.js

2
api/app/lib/controllers/patrolManage/yujingguanli.js

@ -27,7 +27,7 @@ async function varfiyCode(ctx) {
if(type.includes(1)){
await pushBySms({
phone: phone,
templateCode: 'SMS_261950020',
templateCode: 'SMS_273640525',
templateParam: {
code: varifyCode
},

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

@ -135,7 +135,7 @@ const Information = (props) => {
</div>
<div className='shouyetopitem-right'>
<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>未处理{shijiandata.filter(i => i?.alarm === true && (i?.patrolRecordIssueHandles[0]?.state === 1 ||i?.patrolRecordIssueHandles.length==0)).length}</div>
</div>
</div>
<div className='shouyetopitem'>

Loading…
Cancel
Save