diff --git a/Backend/ApiControllers/DeviceApiController.cs b/Backend/ApiControllers/DeviceApiController.cs index cf3547f..724d76d 100644 --- a/Backend/ApiControllers/DeviceApiController.cs +++ b/Backend/ApiControllers/DeviceApiController.cs @@ -61,10 +61,10 @@ namespace Backend.ApiControllers { { "@user_guid", myUser.userinfo_guid }, { "@operation_type", 1 }, //1:名稱修改 - { "@building_guid", GetOne.Building_guid }, - { "@main_system_guid", GetOne.Main_system_guid }, - { "@sub_system_guid", GetOne.Sub_system_guid }, - { "@floor_guid", GetOne.Floor_guid }, + { "@building_guid", GetOne.building_tag }, + { "@main_system_guid", GetOne.device_system_tag }, + { "@sub_system_guid", GetOne.device_name_tag }, + { "@floor_guid", GetOne.floor_tag }, { "@device_guid", GetOne.Device_guid }, { "@action_name", "修改名稱" }, { "@parameter", JsonConvert.SerializeObject(change) }, diff --git a/Backend/Models/Device.cs b/Backend/Models/Device.cs index c611d80..ece58ee 100644 --- a/Backend/Models/Device.cs +++ b/Backend/Models/Device.cs @@ -54,13 +54,13 @@ namespace Backend.Models public string Device_guid { get; set; } public byte Deleted { get; set; } public byte Status { get; set; } - public string Building_guid { get; set; } + public string building_tag { get; set; } public string Building_full_name { get; set; } public string Main_system_guid { get; set; } public string Main_system_full_name { get; set; } public string Sub_system_guid { get; set; } public string Sub_system_full_name { get; set; } - public string Floor_guid { get; set; } + public string floor_tag { get; set; } public string Floor_full_name { get; set; } public string Device_coordinate { get; set; } public string Device_full_name { get; set; } @@ -76,7 +76,8 @@ 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 string device_name_tag { get; set; } + public string device_system_tag { get; set; } public List Device_disasters { get; set; } //防災類型 public List Device_nodes { get; set; } //設備子節點 } diff --git a/Backend/Views/UserInfo/Index.cshtml b/Backend/Views/UserInfo/Index.cshtml index 40cd35c..e894251 100644 --- a/Backend/Views/UserInfo/Index.cshtml +++ b/Backend/Views/UserInfo/Index.cshtml @@ -814,7 +814,7 @@ if (rel.data.length > 0) { $('#select_building').empty(); $.each(rel.data, function (index, val) { - $("#select_building").append($("