Browse Source

合理值的判断

dev
wenlele 2 years ago
parent
commit
3c507a6916
  1. 10
      api/app/lib/schedule/alarms_push.js

10
api/app/lib/schedule/alarms_push.js

@ -671,6 +671,10 @@ module.exports = function (app, opts) {
n: '告警源',
k: 'SourceName'
},
{
n: '合理值',
k: 'AlarmTypeCode'
},
{
n: '中断时间',
k: '',
@ -1102,7 +1106,8 @@ module.exports = function (app, opts) {
alarms.SourceId AS sourceId,
alarms.StartTime AS StartTime,
alarms.SourceName AS SourceName,
alarms.AlarmCode AS AlarmCode
alarms.AlarmCode AS AlarmCode,
alarms.AlarmTypeCode AS AlarmTypeCode
FROM
alarms
WHERE
@ -1283,6 +1288,9 @@ module.exports = function (app, opts) {
case 'SourceName':
tableData += `<td>${d[t.k] || ''}</td>`
break;
case 'AlarmTypeCode':
tableData += `<td>${d[t.k] == 3018 ? "是" : '否'}</td>`
break
default:
break;
}

Loading…
Cancel
Save