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: "設備名稱",
|
title: "設備名稱",
|
||||||
data: "sourceName_zh",
|
data: "sourceName_zh",
|
||||||
render: function (data) {
|
render: function (data, type, row) {
|
||||||
return (
|
const building_name = pageAct.buildList.find(
|
||||||
allDevices.find((d) => d.device_number === data)?.full_name || ""
|
({ 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 取得告警資料
|
// 向 niagara 取得告警資料
|
||||||
getDeviceAlarmCardByBaja(null, now, false, false, function (bajaDatas) {
|
getDeviceAlarmCardByBaja(null, now, false, false, function (bajaDatas) {
|
||||||
let datas = bajaDatas.data;
|
let datas = bajaDatas.data.filter(({ alarmClass }) => alarmClass!== "defaultAlarmClass");
|
||||||
let titleHtml = `異常通知`;
|
let titleHtml = `異常通知`;
|
||||||
let notices = [];
|
let notices = [];
|
||||||
// 遍歷每個告警資料
|
// 遍歷每個告警資料
|
||||||
|
@ -262,6 +262,7 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
}
|
}
|
||||||
if (d.type != lastDeviceItem)
|
if (d.type != lastDeviceItem)
|
||||||
{
|
{
|
||||||
|
RowPosition = 0;
|
||||||
lastDeviceItem = d.type;
|
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}");
|
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
|
#region set cell
|
||||||
@ -282,7 +283,7 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
cell.SetCellValue("記錄時間");
|
cell.SetCellValue("記錄時間");
|
||||||
cell.CellStyle = styleLine12;
|
cell.CellStyle = styleLine12;
|
||||||
#endregion
|
#endregion
|
||||||
RowPosition = 0;
|
RowPosition = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
RowPosition += 1;
|
RowPosition += 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user