Browse Source

数据告警 groupUnitId 查询参数

dev
巴林闲侠 2 years ago
parent
commit
b19b4e534b
  1. 2
      api/app/lib/controllers/alarm/data.js
  2. 2
      web/package.json

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

@ -49,7 +49,7 @@ async function list (ctx) {
whereOption.push(`alarms.AlarmGroup IN (${groupId})`) whereOption.push(`alarms.AlarmGroup IN (${groupId})`)
} }
if (groupUnitId) { if (groupUnitId) {
whereOption.push(`alarms.AlarmGroupUnit=${groupId}`) whereOption.push(`alarms.AlarmGroupUnit=${groupUnitId}`)
} }
if (sustainTimeStart && sustainTimeEnd) { if (sustainTimeStart && sustainTimeEnd) {
let momentStart = moment(sustainTimeStart).format() let momentStart = moment(sustainTimeStart).format()

2
web/package.json

@ -47,7 +47,7 @@
"vite": "^2.9.5" "vite": "^2.9.5"
}, },
"dependencies": { "dependencies": {
"@douyinfe/semi-ui": "2.8.0", "@douyinfe/semi-ui": "^2.20.0",
"@douyinfe/semi-webpack-plugin": "^2.13.0", "@douyinfe/semi-webpack-plugin": "^2.13.0",
"@micro-zoe/micro-app": "^1.0.0-alpha.1", "@micro-zoe/micro-app": "^1.0.0-alpha.1",
"@peace/utils": "^0.0.64", "@peace/utils": "^0.0.64",

Loading…
Cancel
Save