From dd44ebbde5a875ade826df59973b1ec8912d4cd8 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 28 Sep 2022 15:49:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=95=B0=E6=8D=AE=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E5=BA=94=E8=BF=94=E5=9B=9E=20pomsProject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/alarm/data.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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) || {});