From c7f983844784797de96c5c5eb642eccf78be2b25 Mon Sep 17 00:00:00 2001 From: dev02 Date: Tue, 28 Mar 2023 15:26:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=BE=8C=E7=AB=AF]=20=E4=BF=AE=E6=94=B9tag?= =?UTF-8?q?=E6=92=88=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/Models/Device.cs | 1 + Backend/Views/DeviceManage/Index.cshtml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(`