From 6d94865f14311a5c3445b47eac547603ca544763 Mon Sep 17 00:00:00 2001 From: dev01 Date: Thu, 17 Nov 2022 16:05:17 +0800 Subject: [PATCH] [FrontendWebApi] mainSysTag => SubSysTag --- Frontend/index.html | 6 ++++-- FrontendWebApi/ApiControllers/DeviceManageController.cs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Frontend/index.html b/Frontend/index.html index 18e0b19..2c03b0f 100644 --- a/Frontend/index.html +++ b/Frontend/index.html @@ -2121,8 +2121,10 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li } else { let strHtml = ``; - $.each(res.data.history_Main_Systems, (index, subSysObj) => { - strHtml += ``; + $.each(res.data.history_Main_Systems, (index, mainSysObj) => { + $.each(mainSysObj.history_Sub_systems, (index2, subSysObj) => { + strHtml += ``; + }) }) $("#sysMonBtnList").append(strHtml); } diff --git a/FrontendWebApi/ApiControllers/DeviceManageController.cs b/FrontendWebApi/ApiControllers/DeviceManageController.cs index 23583ff..d3be9ca 100644 --- a/FrontendWebApi/ApiControllers/DeviceManageController.cs +++ b/FrontendWebApi/ApiControllers/DeviceManageController.cs @@ -172,7 +172,7 @@ namespace FrontendWebApi.ApiControllers { ApiResult> apiResult = new ApiResult>(); - if (string.IsNullOrEmpty(fd.main_system_tag)) + if (string.IsNullOrEmpty(fd.sub_system_tag)) { apiResult.Code = "0001"; apiResult.Msg = "必須系統類別";