|
|
@ -302,7 +302,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//获取监控单元模块
|
|
|
|
//获取监控单元模块
|
|
|
|
const alertListColumns = ['告警编号', '告警单元', '告警位置', '告警信息', '类型', '告警时间', '处理情况']
|
|
|
|
const alertListColumns = ['告警编号', '告警类型', '告警单元', '告警信息', '告警位置', '告警时间', '处理情况']
|
|
|
|
const alertList = new AutoScrollTable(document.getElementById("alert-list"), alertListColumns, {
|
|
|
|
const alertList = new AutoScrollTable(document.getElementById("alert-list"), alertListColumns, {
|
|
|
|
width: ['10%', '10%', '10%', '30%', '10%', '10%', '10%'],
|
|
|
|
width: ['10%', '10%', '10%', '30%', '10%', '10%', '10%'],
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -316,7 +316,7 @@
|
|
|
|
success: (res) => {
|
|
|
|
success: (res) => {
|
|
|
|
console.log("告警信息:" + res);
|
|
|
|
console.log("告警信息:" + res);
|
|
|
|
|
|
|
|
|
|
|
|
alertList.loadData(res.map(value => [value.alarmModuleId.substring(0, 2) + "...", value.alarmModuleText, value.sensorLocation, `${"无线检测 相对检测值为:" + value.minValue + "-" + value.maxValue + ",其值为:" + value.alarmValue}`, "超限", value.collectTime, `${value.disposeFlag == 1 ? '<button class="text-success" id="' + value.alarmuid + '" onclick="disposeInfo(this.id)">已处理</button>' : '<button id="' + value.alarmuid + '" onclick="alarmDispose(this.id)" class="text-danger">未处理</button>'}`]), Object.keys(alertListColumns))
|
|
|
|
alertList.loadData(res.map(value => [value.alarmModuleId.substring(0, 4) + "...", value.alarmModuleText, value.monitorUnitName, `${"无线检测 相对检测值为:" + value.minValue + "-" + value.maxValue + ",其值为:" + value.alarmValue}`, value.sensorLocation, value.collectTime, `${value.disposeFlag == 1 ? '<button class="text-success" id="' + value.alarmuid + '" onclick="disposeInfo(this.id)">已处理</button>' : '<button id="' + value.alarmuid + '" onclick="alarmDispose(this.id)" class="text-danger">未处理</button>'}`]), Object.keys(alertListColumns))
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: () => {
|
|
|
|
error: () => {
|
|
|
@ -347,6 +347,15 @@
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<label>告警编号:${result.alarmuid}</label>
|
|
|
|
<label>告警编号:${result.alarmuid}</label>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警单元:${result.monitorUnitName}</label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警类型:${result.alarmModuleText}</label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警位置:${result.sensorLocation}</label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<label>告警信息:${"无线检测相对检测值为:" + result.minValue + "-" + result.maxValue + ",实际值为:" + result.alarmValue}</label>
|
|
|
|
<label>告警信息:${"无线检测相对检测值为:" + result.minValue + "-" + result.maxValue + ",实际值为:" + result.alarmValue}</label>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
@ -377,6 +386,15 @@
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<label>告警编号:${res.alarmuid}</label>
|
|
|
|
<label>告警编号:${res.alarmuid}</label>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警单元:${res.monitorUnitName}</label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警类型:${res.alarmModuleText}</label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警位置:${res.sensorLocation}</label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<label>告警信息:${"无线检测相对检测值为:" + res.minValue + "-" + res.maxValue + ",实际值为:" + res.alarmValue}</label>
|
|
|
|
<label>告警信息:${"无线检测相对检测值为:" + res.minValue + "-" + res.maxValue + ",实际值为:" + res.alarmValue}</label>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|