diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index 4624de7..4af615e 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -1129,17 +1129,12 @@ module.exports = function (app, opts) { v.devices.push({ ...f }) } }) - }) - - factorData.map(a => { - if (strucMap[a.structureId]) { - strucMap[a.structureId].factor.push({ ...a }) + if (strucMap[v.structureId]) { + strucMap[v.structureId].factor.push({ ...v }) } }) - pepProject_name.map(s => { - - }) + let projectList = [] for (let key in strucMap) { if (strucMap[key].factor.length > 0) { @@ -1199,6 +1194,7 @@ module.exports = function (app, opts) { } h.rowspan = rowspan1 }) + console.log('数据组合',pepProject_name); dataAlarmG1 = pepProject_name } @@ -1355,6 +1351,7 @@ module.exports = function (app, opts) { alarmHtml += `