[Frontend]告警系統 Sys_Con_AlarmClass 設邊編號顯示
This commit is contained in:
parent
b68c13c905
commit
c745a509a1
@ -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]}`
|
||||
: "";
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user