Merge branch 'MCUT' of https://gitea.mjm-staging.developers-homelab.net/BIMS/BIMS into MCUT
This commit is contained in:
commit
b098c427fe
@ -1070,10 +1070,14 @@
|
||||
{
|
||||
title: "設備名稱",
|
||||
data: "sourceName_zh",
|
||||
render: function (data) {
|
||||
return (
|
||||
allDevices.find((d) => d.device_number === data)?.full_name || ""
|
||||
);
|
||||
render: function (data, type, row) {
|
||||
const building_name = pageAct.buildList.find(
|
||||
({ building_tag }) => building_tag === data.split("_")[1]
|
||||
)?.full_name;
|
||||
return allDevices.find((d) => d.device_number === data)?.full_name ||
|
||||
row.alarmClass === "Sys_Con_AlarmClass"
|
||||
? `${building_name}_電錶邊緣控制器_${data.split("_")[7]}`
|
||||
: "";
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -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