@@ -32,6 +35,7 @@
var global_emergency_alarm_device_number = [];
var zoomToggle = 3;
$(function () {
+ drawHeatBar();
getHotspotPoint(() => {
show3DModel(pageAct.urn);
});
@@ -465,10 +469,17 @@
floMyBaja.setSubscribeDeviceEndCallBack(function (data) {
endPageLoading();
+ if (data.findIndex(x => x.point_name == "Temp") != -1) {
+ // 顯示溫度條
+ showHeat("[name=forgeHeatBar]");
+ }
});
}
+ function drawHeatBar() {
+ $("#forgeHeatBarDiv").html(setTopHeatBar());
+ }
// 電梯 3D 位置呈現
function set3DElevPos(viewer) {
@@ -1070,7 +1081,6 @@
}
forge3DElev.init();
-
});
}
diff --git a/Frontend/index.html b/Frontend/index.html
index 34c8456..e0ddb44 100644
--- a/Frontend/index.html
+++ b/Frontend/index.html
@@ -203,7 +203,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
-
+
@@ -667,6 +667,10 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
+
+
+
+
@@ -832,7 +836,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
* 登入驗證完成 Callback
* */
function isValidLogin() {
-
+
getUserInfo();
iniFroList();
showMainSys();
@@ -840,7 +844,6 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
getSysMonBtnList();
checkDevState();
-
if (lastPage) {
let lastPageAct = {};
if (isJSON(sessionStorage.getItem("pageAct"))) {
@@ -852,7 +855,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
} else {
$(`[data-tabname=topFunBtn][data-page=${lastPage}]`).YTTab("setAndClick");
}
-
+
/*$(`[name=topFunBtn][data-page=${lastPage}]`).click();*/
} else {
$("#app").load("_dashboard.html", loadCallback);
@@ -922,7 +925,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
if (!page) {
return;
}
- if (page != "systemMonitor") {
+ if (page != "systemMonitor" && page != "sysElevator") {
$("#sysMonBtnList .dropdown-item").removeClass("active");
pageAct.sysMainTag = null;
pageAct.sysSubTag = null;
@@ -939,15 +942,10 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
endPageLoading();
$(".yt-alert").YTAlert().hide();
- if (typeof timeOuters != "undefined" && timeOuters) {
- $.each(timeOuters, (idx, timeOut) => {
- clearInterval(timeOut);
- })
- timeOuters = [];
- }
+
getUserInfo();
-
+
sessionStorage.setItem("lastPage", page);
sessionStorage.setItem("pageAct", JSON.stringify(pageAct));
$("#app").load(`_${page}.html`, loadCallback);
@@ -959,14 +957,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
location.href = "/logout";
})
- onEvent("click", "#sysMonBtnList a", function (e) {
- //pageAct.sysMainTag = $(this).data("subSysObj").main_system_tag;
- //pageAct.sysSubTag = $(this).data("subSysObj").sub_system_tag;
- //pageAct.sysSubName = $(this).data("subSysObj").full_name;
- //pageAct.sysSubObj = $(this).data("subSysObj");
- //getDevItem();
- })
-
+
onEvent("active:change", "#buiList", function (e, actEle) {
if (actEle) {
pageAct.buiTag = $(actEle).prop("id").split("buiBtn")[1];
@@ -988,12 +979,20 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
}
})
+ onEvent("scroll", window, function () {
+ if ($(window).scrollTop() != 0) {
+ $("#noticeBlock").css("top", 0);
+ } else {
+ $("#noticeBlock").css("top", 70);
+ }
+ })
+
onEvent("click", "#testsysbtn", function () {
})
-
+ let fronIdx = 1;
$(window).on("timeout:3s", function () {
-
+
getSystemAlarmByBaja((data) => {
if (typeof getAlarmSub != "undefined" && getAlarmSub) {
getAlarmSub(data);
@@ -1001,7 +1000,28 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
alarmIconBlink();
})
- showWarToast();
+ let content = `
+
+ 異常編號:001
+
+
+ 異常等級:2
+
+
+ 異常類別:S01
+
+
+ 設備名稱:電表01
+
+
+ 異常訊息:壞掉
+
+
+
`
+ let titleHtml = `異常通知`
+
+ $("#noticeBlock").YTNotice("add", titleHtml + fronIdx, content,"warning");
+ fronIdx++;
})
}
@@ -1084,7 +1104,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
function drawErrRecTabBlo() {
let strHtml = `
-
`
+ `
return strHtml;
}
@@ -1092,7 +1112,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
function drawOpeRecTabBlo() {
let strHtml = `
-
`
+ `
return strHtml;
}
@@ -1109,35 +1129,35 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
let lightHtml = type == "light" ? `` : "";
let option = {
html: `
-
+
-
-
-
-
-
- ${lightHtml}
-
-
-
-
-
-
-
-
- ${drawStateTabBlo(devNum)}
-
-
+
+
+
+
+
+ ${lightHtml}
+
+
+
+
+
+
+
+
+ ${drawStateTabBlo(devNum)}
+
+
-
-
- ${drawErrRecTabBlo()}
-
-
- ${drawOpeRecTabBlo()}
-
-
-
`,
+
+
+ ${drawErrRecTabBlo()}
+
+
+ ${drawOpeRecTabBlo()}
+
+
+ `,
group: "device",
onShow: function (tooltipEle, oriEle) {
// 執行 pop 視窗上方 Tab 類別
@@ -1164,7 +1184,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
});
// pop 視窗卡片可縮放功能初始化
$(tooltipEle).resizable({
- resize: function (event,ui) {
+ resize: function (event, ui) {
let iframe = $(ui.element).find("iframe");
if (iframe.length != 0) {
if (ui.size.width != ui.originalSize.width) {
@@ -1175,11 +1195,11 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
}
let cardBodyHeight = $(ui.element).find(".card-body").css("height");
$(ui.element).find(".scrolledTable").css("height", cardBodyHeight)
-
+
errRecTable.draw(false)
},
minWidth: 200,
- minHeight:150,
+ minHeight: 150,
});
// 電梯管理 - Card table 更新
typeof subDeviceSetTable != "undefined" ? subDeviceSetTable($(oriEle).data("number")) : ""
@@ -1415,6 +1435,12 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
return parentEle;
}
+ // 設置 Forge 3D 溫度條
+ function setTopHeatBar() {
+ let strHtml = ``;
+ return strHtml;
+ }
+
//==============================================================================
// ↑ 系統監控 - 共用 Function ↑
//==============================================================================
@@ -1433,7 +1459,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
function getDevItem() {
let url = baseApiUrl + "/api/Device/GetDeviceItem";
-
+
objSendData.Data = {
main_system_tag: pageAct.sysMainTag,
sub_system_tag: pageAct.sysSubTag,
@@ -1458,7 +1484,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
function timeOutGetData() {
let timeOut3s = null, timeOut5m = null;
let events = $._data($(window)[0], "events");
-
+
if (Object.keys(events).findIndex(x => x == "timeout:3s") != -1) {
timeOut3s = setInterval(() => {
$(window).trigger("timeout:3s");
@@ -1509,35 +1535,35 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
} else {
let strHtml = `