From 99e510287a4df444e0e5c6e8d9549d07937ef385 Mon Sep 17 00:00:00 2001 From: dev01 Date: Thu, 22 Dec 2022 14:27:17 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=89=8D=E5=8F=B0]=20bajatest=20=E8=A8=82?= =?UTF-8?q?=E9=96=B1=E7=A8=8B=E5=BA=8F=20areaTag=20=E5=8B=95=E6=85=8B?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=AA=BF=E6=95=B4=20|=20[=E9=9B=BB=E9=8C=B6?= =?UTF-8?q?=E9=A0=81=E9=9D=A2]=20=E5=B7=A6=E6=96=B9=E5=8D=A1=E7=89=87=20fl?= =?UTF-8?q?ex=20=E6=94=B9=E7=82=BA=20grid=20|=20sessionstorage=20=E7=B4=80?= =?UTF-8?q?=E9=8C=84=E6=AD=A3=E5=9C=A8=E9=81=B8=E6=93=87=E7=9A=84=E6=A3=9F?= =?UTF-8?q?=E5=88=A5=20|=20[=E5=84=80=E9=8C=B6=E6=9D=BF]=20=E5=8E=9F?= =?UTF-8?q?=E5=8F=96=E7=AC=AC=E4=B8=80=E7=AD=86=E9=9B=BB=E9=8C=B6=E8=B3=87?= =?UTF-8?q?=E6=96=99=E6=94=B9=E7=82=BA=E6=8A=93=E8=B3=87=E6=96=99=E5=BA=AB?= =?UTF-8?q?total?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_dashboard.html | 19 +++----- Frontend/_sysElevator.html | 3 +- Frontend/_sysMonAll.html | 89 +++++++++++++++++++----------------- Frontend/_systemMonitor.html | 2 +- Frontend/css/site.css | 16 +++++++ Frontend/index.html | 14 ++++-- Frontend/js/n4js/bajatest.js | 12 ++--- 7 files changed, 89 insertions(+), 66 deletions(-) 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 @@