Browse Source

筛选数据范围应返回 pomsProject

dev
巴林闲侠 2 years ago
parent
commit
dd44ebbde5
  1. 13
      api/app/lib/controllers/alarm/data.js

13
api/app/lib/controllers/alarm/data.js

@ -155,19 +155,12 @@ async function list (ctx) {
alarmRes.forEach(ar => { alarmRes.forEach(ar => {
ar.pepProject = (anxinStruc.find(as => as.strucId == ar.StructureId) || ar.pomsProject = (anxinStruc.find(as => as.strucId == ar.StructureId) ||
{ {
pepProject: [ pomsProject: [
// TODO: 开发临时添加 // TODO: 开发临时添加
// {
// id: 999,
// projectName: '这是假的开发の数据,看到请拨打110',
// isdelete: 0,
// constructionStatusId: 1,
// constructionStatus: '建设中',
// }
] ]
}).pepProject }).pomsProject
// 最新告警详情 - 确认信息 // 最新告警详情 - 确认信息
let corConfirmedData = (confirmedAlarmDetailMax.find(cdm => cdm.AlarmId == ar.AlarmId) || {}); let corConfirmedData = (confirmedAlarmDetailMax.find(cdm => cdm.AlarmId == ar.AlarmId) || {});

Loading…
Cancel
Save