Browse Source

api数据展现条件

dev
wenlele 2 years ago
parent
commit
37fe74937f
  1. 4
      api/app/lib/controllers/alarm/data.js

4
api/app/lib/controllers/alarm/data.js

@ -41,10 +41,10 @@ async function list (ctx) {
}) })
let whereOption = [] let whereOption = []
// TODO: 1 开发临时增加 // TODO: 1 开发临时增加
if (anxinStruc.length || 1) { if (anxinStruc.length) {
const anxinStrucIds = anxinStruc.map(a => a.strucId) const anxinStrucIds = anxinStruc.map(a => a.strucId)
// TODO: 开发临时注释 // TODO: 开发临时注释
// whereOption.push(`alarms.StructureId IN (${anxinStrucIds.join(",")})`) whereOption.push(`alarms.StructureId IN (${anxinStrucIds.join(",")})`)
if (groupId) { if (groupId) {
whereOption.push(`alarms.AlarmGroup IN (${groupId})`) whereOption.push(`alarms.AlarmGroup IN (${groupId})`)

Loading…
Cancel
Save