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