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

Loading…
Cancel
Save