[FrontendWebApi] mainSysTag => SubSysTag
This commit is contained in:
parent
3eaf9be2a0
commit
6d94865f14
@ -2121,8 +2121,10 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
let strHtml = ``;
|
let strHtml = ``;
|
||||||
$.each(res.data.history_Main_Systems, (index, subSysObj) => {
|
$.each(res.data.history_Main_Systems, (index, mainSysObj) => {
|
||||||
strHtml += `<button id="subSysBtn${subSysObj.sub_system_tag}" data-maintag="${subSysObj.main_system_tag}"class="dropdown-item" type="button" data-page="systemMonitor" name="topFunBtn">${subSysObj.full_name}</button>`;
|
$.each(mainSysObj.history_Sub_systems, (index2, subSysObj) => {
|
||||||
|
strHtml += `<button id="subSysBtn${subSysObj.sub_system_tag}" data-maintag="${mainSysObj.main_system_tag}"class="dropdown-item" type="button" data-page="systemMonitor" name="topFunBtn">${subSysObj.full_name}</button>`;
|
||||||
|
})
|
||||||
})
|
})
|
||||||
$("#sysMonBtnList").append(strHtml);
|
$("#sysMonBtnList").append(strHtml);
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
{
|
{
|
||||||
ApiResult<List<FloorList>> apiResult = new ApiResult<List<FloorList>>();
|
ApiResult<List<FloorList>> apiResult = new ApiResult<List<FloorList>>();
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(fd.main_system_tag))
|
if (string.IsNullOrEmpty(fd.sub_system_tag))
|
||||||
{
|
{
|
||||||
apiResult.Code = "0001";
|
apiResult.Code = "0001";
|
||||||
apiResult.Msg = "必須系統類別";
|
apiResult.Msg = "必須系統類別";
|
||||||
|
Loading…
Reference in New Issue
Block a user