|
@ -127,15 +127,21 @@ module.exports = function (app, opts) { |
|
|
let undelStruc = [] |
|
|
let undelStruc = [] |
|
|
for (let s of undelStrucRes) { |
|
|
for (let s of undelStrucRes) { |
|
|
if (!undelStruc.some(us => us.strucId == s.strucId)) { |
|
|
if (!undelStruc.some(us => us.strucId == s.strucId)) { |
|
|
|
|
|
let pomsProject = [] |
|
|
|
|
|
for (let br of bindRes) { |
|
|
|
|
|
if (br.anxinProjectId.some(braId => braId == s.projectId)) { |
|
|
|
|
|
let corPepProject = pepProjectRes.find(pp => pp.id == br.pepProjectId) |
|
|
|
|
|
pomsProject.push({ |
|
|
|
|
|
...br, |
|
|
|
|
|
pepProject: corPepProject |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
undelStruc.push({ |
|
|
undelStruc.push({ |
|
|
strucId: s.strucId, |
|
|
strucId: s.strucId, |
|
|
strucName: s.strucName, |
|
|
strucName: s.strucName, |
|
|
// projectId: s.projectId,
|
|
|
// projectId: s.projectId,
|
|
|
pepProject: pepProjectRes.filter(pp => { |
|
|
pomsProject: pomsProject |
|
|
return bindRes.some(br => { |
|
|
|
|
|
return br.pepProjectId == pp.id && br.anxinProjectId.some(braId => braId == s.projectId) |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|