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