|
|
@ -307,7 +307,7 @@
|
|
|
|
width: ['10%', '10%', '10%', '30%', '10%', '10%', '10%'],
|
|
|
|
width: ['10%', '10%', '10%', '30%', '10%', '10%', '10%'],
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
//获取告警信息
|
|
|
|
//获取告警单元模块信息
|
|
|
|
const alarmInfo = function () {
|
|
|
|
const alarmInfo = function () {
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url: "/iot/wisdomScenario/getAlarmInfo?monitorUnitId=" + getParams("id"),
|
|
|
|
url: "/iot/wisdomScenario/getAlarmInfo?monitorUnitId=" + getParams("id"),
|
|
|
@ -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">已处理</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, 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))
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: () => {
|
|
|
|
error: () => {
|
|
|
@ -341,6 +341,37 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const disposeInfo = function (res) {
|
|
|
|
|
|
|
|
$.getJSON('/iot/wisdomScenario/getAlarmByUid?alarmuid=' + res, function (result) {
|
|
|
|
|
|
|
|
let html = `<div>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警编号:${result.alarmuid}</label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警信息:${"无线检测相对检测值为:" + result.minValue + "-" + result.maxValue + ",实际值为:" + result.alarmValue}</label>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>告警原因</label>
|
|
|
|
|
|
|
|
<input type="text" name="alarmReason" id="alarmReason" style="width: 70%;" readonly value=${result.alarmReason} >
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
|
|
|
|
<label>处理方式</label>
|
|
|
|
|
|
|
|
<input type="text" name="disposeMode" id="disposeMode" style="width: 70%;" readonly value=${result.disposeMode} >
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dialog({
|
|
|
|
|
|
|
|
title: "处理详情",
|
|
|
|
|
|
|
|
width: 600,
|
|
|
|
|
|
|
|
content: html,
|
|
|
|
|
|
|
|
ok: {
|
|
|
|
|
|
|
|
callback: function () {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const alarmDisposeInfo = function (res) {
|
|
|
|
const alarmDisposeInfo = function (res) {
|
|
|
|
let html = `<div>
|
|
|
|
let html = `<div>
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
|
<p style="margin-top: 13px;">
|
|
|
@ -384,7 +415,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|