diff --git a/Frontend/_energyManagement.html b/Frontend/_energyManagement.html index bd597c3..f21ebc1 100644 --- a/Frontend/_energyManagement.html +++ b/Frontend/_energyManagement.html @@ -260,60 +260,63 @@ // 左上方 系統小類卡片區塊 function getSubSysList(type = 0) { subSysList = []; - let url = baseApiUrl + "/api/Device/GetMainSub"; - let sendData = { - building_tag: pageAct.buiTag, - }; - objSendData.Data = sendData; - ytAjax = new YourTeam.Ajax(url, objSendData, function (res) { - if (!res || res.code != "0000" || !res.data) { - - } else { - let strHtml = ''; - $.each(res.data.history_Main_Systems, (index, mainSysObj) => { - $.each(mainSysObj.history_Sub_systems, (index2, subSysObj) => { - subSysList.push(subSysObj); -if ((type == 0 || (type == 3 && mainSysObj.main_system_tag == "ELEV")) && filNotShowSysSub.indexOf(subSysObj.sub_system_tag) == -1) { - strHtml += `
- ${elecCardConText[type]?.text1} - -
-- ${elecCardConText[type]?.text2} - -
-+ ${elecCardConText[type]?.text1} + +
++ ${elecCardConText[type]?.text2} + +
+- ${elecCardConText[type]?.text1} - --- -
-- ${elecCardConText[type]?.text2} - --- -
-+ ${elecCardConText[type]?.text1} + --- +
++ ${elecCardConText[type]?.text2} + --- +
+