Merge branch 'MCUT' of https://gitea.mjm-staging.developers-homelab.net/BIMS/BIMS into MCUT
This commit is contained in:
commit
b098c427fe
2938
Frontend/_alert.html
2938
Frontend/_alert.html
File diff suppressed because it is too large
Load Diff
@ -2328,7 +2328,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
||||
];
|
||||
// 向 niagara 取得告警資料
|
||||
getDeviceAlarmCardByBaja(null, now, false, false, function (bajaDatas) {
|
||||
let datas = bajaDatas.data;
|
||||
let datas = bajaDatas.data.filter(({ alarmClass }) => alarmClass!== "defaultAlarmClass");
|
||||
let titleHtml = `異常通知`;
|
||||
let notices = [];
|
||||
// 遍歷每個告警資料
|
||||
|
@ -262,6 +262,7 @@ namespace FrontendWebApi.ApiControllers
|
||||
}
|
||||
if (d.type != lastDeviceItem)
|
||||
{
|
||||
RowPosition = 0;
|
||||
lastDeviceItem = d.type;
|
||||
sheet = workbook.CreateSheet($"{building.Where(x => x.building_tag == lhe.device_number.Split("_")[1]).Select(x => x.full_name).FirstOrDefault()}{"_" + d.type}");
|
||||
#region set cell
|
||||
@ -282,7 +283,7 @@ namespace FrontendWebApi.ApiControllers
|
||||
cell.SetCellValue("記錄時間");
|
||||
cell.CellStyle = styleLine12;
|
||||
#endregion
|
||||
RowPosition = 0;
|
||||
RowPosition = 1;
|
||||
}
|
||||
else {
|
||||
RowPosition += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user