diff --git a/Frontend/_dashboard.html b/Frontend/_dashboard.html
index 3dfeeb0..c61fae7 100644
--- a/Frontend/_dashboard.html
+++ b/Frontend/_dashboard.html
@@ -396,7 +396,7 @@
let curDay = (new Date()).getDay() == 0 ? 7 : (new Date()).getDay();
let curWeekData = data.data.filter(x => strToDate(displayDate(new Date(), "date"), null, 1 - 7) <= strToDate(x.timestamp.$cEncStr));
let prevWeekData = data.data.filter(x => strToDate(displayDate(new Date(), "date"), null, 1 - 14) <= strToDate(x.timestamp.$cEncStr) && strToDate(new Date(), null, 1 - 7) >= strToDate(x.timestamp.$cEncStr));
- debugger
+
chartEveWeeksElec(curWeekData, prevWeekData)
chkBajaLoaded();
})
diff --git a/Frontend/index.html b/Frontend/index.html
index e0ddb44..f0efff1 100644
--- a/Frontend/index.html
+++ b/Frontend/index.html
@@ -44,6 +44,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
+
@@ -667,7 +668,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
-
+
@@ -802,6 +803,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
"yourteam/plugins/yt-tooltip/yt-tooltip",
"yourteam/plugins/yt-tab/yt-tab",
"yourteam/plugins/yt-navbar/yt-navbar",
+ "yourteam/plugins/yt-notice/yt-notice",
"style",
], function () {
@@ -843,7 +845,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
getBuiList();
getSysMonBtnList();
checkDevState();
-
+
if (lastPage) {
let lastPageAct = {};
if (isJSON(sessionStorage.getItem("pageAct"))) {
@@ -942,7 +944,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
endPageLoading();
$(".yt-alert").YTAlert().hide();
-
+
getUserInfo();
@@ -957,7 +959,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
location.href = "/logout";
})
-
+
onEvent("active:change", "#buiList", function (e, actEle) {
if (actEle) {
pageAct.buiTag = $(actEle).prop("id").split("buiBtn")[1];
@@ -986,11 +988,15 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
$("#noticeBlock").css("top", 70);
}
})
-
+
onEvent("click", "#testsysbtn", function () {
})
- let fronIdx = 1;
+
+ onEvent("click", "button[id^=noticeChkBtn]", function () {
+ $(this).parents(".toast").YTNotice("hide");
+ })
+
$(window).on("timeout:3s", function () {
getSystemAlarmByBaja((data) => {
@@ -1000,28 +1006,9 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
alarmIconBlink();
})
- let content = `
-
- 異常編號:001
-
-
- 異常等級:2
-
-
- 異常類別:S01
-
-
- 設備名稱:電表01
-
-
- 異常訊息:壞掉
-
-
-
`
- let titleHtml = `異常通知`
-
- $("#noticeBlock").YTNotice("add", titleHtml + fronIdx, content,"warning");
- fronIdx++;
+
+ getAlarmFromDB();
+
})
}
@@ -1104,7 +1091,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
function drawErrRecTabBlo() {
let strHtml = `
-
`
+ `
return strHtml;
}
@@ -1112,7 +1099,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
function drawOpeRecTabBlo() {
let strHtml = `
-
`
+ `
return strHtml;
}
@@ -1129,35 +1116,35 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
let lightHtml = type == "light" ? `` : "";
let option = {
html: `
-
+
-
-
+
+
+
+
+
+ ${lightHtml}
+
+
+
+
+
-
-
- ${lightHtml}
-
-
-
-
-
-
-
-
- ${drawStateTabBlo(devNum)}
-
-
+
+
+ ${drawStateTabBlo(devNum)}
+
+
+
+
+ ${drawErrRecTabBlo()}
+
+
+ ${drawOpeRecTabBlo()}
+
-
- ${drawErrRecTabBlo()}
-
-
- ${drawOpeRecTabBlo()}
-
-
-
`,
+
`,
group: "device",
onShow: function (tooltipEle, oriEle) {
// 執行 pop 視窗上方 Tab 類別
@@ -1535,35 +1522,35 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
} else {
let strHtml = `