@ -42,7 +42,7 @@ async function list (ctx) {
findOption.where.alarmType = { $contains: [alarmType] }
}
if (state) {
if (state == 'enable') {
if (state == 'enable' || state == 'notYet' || state == 'takeEffect') {
findOption.where.disable = false
} else if (state == 'disable') {
findOption.where.disable = true
@ -207,6 +207,16 @@ module.exports = function (app, opts) {
let pomsProject = []
for (let b of bindRes) {
if (
keywordTarget == 'pepProject' && keyword
&& (
!b.name && !(
b.pepProjectId && pepProjectRes.some(pp => pp.id == b.pepProjectId)
)
) {
continue
if (b.pepProjectId) {
let corPepProject = pepProjectRes.find(pp => pp.id == b.pepProjectId) || {}
pomsProject.push({