-
-
-
- 3/10
-
-
-
-
14,134
-
-
+
+
+
已完成
6
+
+
未完成
8
+
+
+
未派工
5
+
+
派工中
9
@@ -327,8 +297,11 @@
[700, 1]
];
- $(document).ready(function () {
+ var tarElePath = '';
+ $(document).ready(function () {
+ getSubList();
+ getFirstEletric();
/* init datatables */
$('#dt-basic-example').dataTable(
{
@@ -713,4 +686,80 @@
$("#js-page-content").load("_sysMonAll.html", loadCallback);
}
+ function getSubList() {
+ 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) => {
+ strHtml += `
+
+
+
`;
+ })
+ })
+ $("#sysSubBtnList").html(strHtml);
+ getAlarmSub();
+
+ }
+ }, null, "POST").send();
+ }
+
+ 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) {
+ if (!res || res.code != "0000" || !res.data) {
+
+ } else {
+
+ $.each(res.data, (index, floObj) => {
+ $.each(floObj.device_list, (index2, devObj) => {
+ tarElePath = devObj.device_number;
+ })
+ })
+
+ getElectricBaja();
+ }
+ }, null, "POST").send();
+ }
+
+ function getElectricBaja() {
+ let devPath = tarElePath.split("_").slice(0, 8).join("_");
+
+ let today = displayDate(new Date, "date").replaceAll("/", "-") + "T00:00:00";
+ let tomorrow = displayDate(new Date(new Date(today).getTime() + (24 * 60 * 60 * 1000)), "date").replaceAll("/", "-") + "T00:00:00";
+
+ getElectricMeterDayDataByBaja(devPath + "_KWH", "Mitsubishi_Sup", today, tomorrow, (data) => {
+ console.log(data)
+ })
+ }
+
+ function getAlarmSub() {
+
+
+ //$(".dev-group").each((idx, ele) => {
+ // let path = $(ele).data("id");
+ // let start = (new Date()).getTime();
+ // console.log("path enter baja:", path);
+ // getOneSystemStateByBaja(path, (data) => {
+ // let end = (new Date()).getTime();
+ // console.log("執行時間 :" + (end - start) / 1000 + " 秒","path : " + path, "輸出結果 :"+ data)
+
+
+ // })
+ //})
+
+ }
\ No newline at end of file
diff --git a/Frontend/_historyData.html b/Frontend/_historyData.html
index 12243f7..f89f042 100644
--- a/Frontend/_historyData.html
+++ b/Frontend/_historyData.html
@@ -232,7 +232,8 @@
t.fnClearTable();
if (res.data.length > 0)
t.fnAddData(res.data);
- }
+ }
+ $(loadEle).Loading("close");
}
function setValue(deviceNumber, deviceName, deviceItem, elem) {
diff --git a/Frontend/_sysElevator.html b/Frontend/_sysElevator.html
index 18b42c0..47c96d5 100644
--- a/Frontend/_sysElevator.html
+++ b/Frontend/_sysElevator.html
@@ -3,9 +3,11 @@
background-color: #fff;
min-height: 520px;
}
+
.elevator-table-wrapper {
- padding:0.8rem;
+ padding: 0.8rem;
}
+
table.elevator-build {
/*border: 1px double #000;*/
}
@@ -45,16 +47,16 @@
-
+
-
+
-
-
-
- 號機別 : 1
-
-
-
10F
-
- 狀態 : 運行中
-
-
-
-
-
-
-
- 號機別 : 2
-
-
-
5F
-
-
- 狀態 : 維修
-
-
-
-
-
-
-
-
- 號機別 : 3
-
-
-
3F
-
- 狀態 : 運行中
-
-
-
-
+
@@ -520,7 +482,7 @@
@@ -893,14 +855,16 @@
+
+
+
+
+
+
-
-
-
+
+
|