From 3c507a6916a5bfb98054a0b466a6ab8fa7d4ce36 Mon Sep 17 00:00:00 2001 From: wenlele Date: Tue, 30 May 2023 16:12:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E7=90=86=E5=80=BC=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/schedule/alarms_push.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index 96efb59..81925f6 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/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 += `${d[t.k] || ''}` break; + case 'AlarmTypeCode': + tableData += `${d[t.k] == 3018 ? "是" : '否'}` + break default: break; }