diff --git a/Frontend/_dashboard.html b/Frontend/_dashboard.html index ab70fcc..51df0a6 100644 --- a/Frontend/_dashboard.html +++ b/Frontend/_dashboard.html @@ -308,22 +308,14 @@ //取得第一筆電錶 function getFirstEletric() { - let url = baseApiUrl + "/api/Device/GetDeviceList"; - let sendData = { - sub_system_tag: "E4", - building_tag: pageAct.buiTag, - }; - objSendData.Data = sendData; - ytAjax = new YourTeam.Ajax(url, objSendData, function (res) { + let url = baseApiUrl + "/api/Energe/GetElecBySubSysTag"; + + ytAjax = new YourTeam.Ajax(url, null, function (res) { if (!res || res.code != "0000" || !res.data) { } else { - - $.each(res.data, (index, floObj) => { - $.each(floObj.device_list, (index2, devObj) => { - tarElePath = devObj.device_number; - }) - }) + subSysElecList = res.data; + tarElePath = subSysElecList.filter(x => x.mainSubTag == "total")[0]?.system_device_tag ?? ""; startPageLoading(); getSubBaja(); getElectricBaja(); @@ -803,6 +795,7 @@ function subDeviceSetStatus() { let subOrdPath = { + "area_tag": pageAct.AreaTag, "building_tag": pageAct.buiTag, "system_tag": "ELEV", "name_tag": "EL", diff --git a/Frontend/_sysElevator.html b/Frontend/_sysElevator.html index aec5321..9201177 100644 --- a/Frontend/_sysElevator.html +++ b/Frontend/_sysElevator.html @@ -920,6 +920,7 @@ var elev3DOption = {}; var elev3DObj = []; var subOrdPath = { + "area_tag": pageAct.AreaTag, "building_tag": pageAct.buiTag, "system_tag": pageAct.sysMainTag, "name_tag": pageAct.sysSubTag, @@ -1970,8 +1971,6 @@ var dataPoint = floChart.convertFromPixel({ geoIndex: 0 }, pixelPoint); console.log(dataPoint); - - temp_device_on_floor_map = [{ device_guid: selected_temp_device.device_guid, device_full_name: selected_temp_device.device_full_name, diff --git a/Frontend/_sysMonAll.html b/Frontend/_sysMonAll.html index ae64eb7..7713a57 100644 --- a/Frontend/_sysMonAll.html +++ b/Frontend/_sysMonAll.html @@ -1,9 +1,8 @@ 
-
+
@@ -25,7 +24,7 @@
- +
@@ -37,46 +36,49 @@