diff --git a/Backend/Models/Device.cs b/Backend/Models/Device.cs index 004d98a..c611d80 100644 --- a/Backend/Models/Device.cs +++ b/Backend/Models/Device.cs @@ -76,6 +76,7 @@ namespace Backend.Models public string Device_flashing { get; set; } public string Device_ip { get; set; } public string Device_port { get; set; } + public string Device_name_tag { get; set; } public List Device_disasters { get; set; } //防災類型 public List Device_nodes { get; set; } //設備子節點 } diff --git a/Backend/Views/DeviceManage/Index.cshtml b/Backend/Views/DeviceManage/Index.cshtml index 2b97f38..d943415 100644 --- a/Backend/Views/DeviceManage/Index.cshtml +++ b/Backend/Views/DeviceManage/Index.cshtml @@ -700,7 +700,7 @@ "data": null, "createdCell": function (td, cellData, rowData, row, col) { $(td).empty(); - if (rowData != null && (rowData.device_system_category_layer3 == "L1" || rowData.device_system_category_layer3 == "L2")) { + if (rowData != null && (rowData.device_name_tag == "L1" || rowData.device_name_tag == "L2")) { $(td).html(`