From 05cee2fd8780626c6d8adf68da840d48dbfb2a68 Mon Sep 17 00:00:00 2001 From: Celeste Date: Mon, 13 Feb 2023 09:25:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=89=8D=E5=8F=B0]=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=92=B0=E5=A2=83=E6=84=9F=E6=B8=AC=E5=99=A8=E9=A0=81=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_sysSensor.html | 555 +++++++++++++++++++++++++++++ Frontend/index.html | 128 +++---- Frontend/lib/skins/skin-master.css | 5 +- 3 files changed, 624 insertions(+), 64 deletions(-) create mode 100644 Frontend/_sysSensor.html diff --git a/Frontend/_sysSensor.html b/Frontend/_sysSensor.html new file mode 100644 index 0000000..4954ac4 --- /dev/null +++ b/Frontend/_sysSensor.html @@ -0,0 +1,555 @@ + + +
+
+ +
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/Frontend/index.html b/Frontend/index.html index 95db2ec..63327e8 100644 --- a/Frontend/index.html +++ b/Frontend/index.html @@ -198,7 +198,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li `; } }); @@ -1626,6 +1626,10 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li if (subSysObj.sub_system_tag == "EL") { page = "sysElevator"; } + console.log(subSysObj.sub_system_tag) + if (subSysObj.sub_system_tag == "M12") { + page = "sysSensor"; + } let li = creEle("li"); let a = creA(subSysObj.full_name, { "href": "javascript:;" }, [], `subSysBtn${subSysObj.sub_system_tag}`, { page: page, tabname: "systemMonitor" }, "topFunBtn"); @@ -1668,10 +1672,10 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li } else { let datas = res.data; - + } - }, null, "POST",true).send(); + }, null, "POST", true).send(); } function getAlarm() { @@ -1696,7 +1700,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li datas[idx].full_name = allDevices.filter(x => x.device_number == data.devicePath)[0]?.full_name; let div1 = creDiv(["col-12"]); - let button = creBtn("確認", "noticeChkBtn", null, ["btn btn-sm btn-secondary ml-auto col-4"], {uuid:data.uuid}); + let button = creBtn("確認", "noticeChkBtn", null, ["btn btn-sm btn-secondary ml-auto col-4"], { uuid: data.uuid }); let btnDiv = creDiv(["d-flex m-0 gap-5 mt-2"]); btnDiv.append(button); // 繪製 每行告警資訊 @@ -1732,7 +1736,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li function getAllDevice() { let url = baseApiUrl + "/api/Device/GetAllDevice"; let result = []; - + ytAjax = new YourTeam.Ajax(url, null, function (res) { if (!res || res.code != "0000" || !res.data) { @@ -1783,7 +1787,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li }) localStorage.setItem("noticeStatus", "hide"); } - + } diff --git a/Frontend/lib/skins/skin-master.css b/Frontend/lib/skins/skin-master.css index d8e6611..56b7f03 100644 --- a/Frontend/lib/skins/skin-master.css +++ b/Frontend/lib/skins/skin-master.css @@ -301,8 +301,9 @@ body:not(.mod-skin-light):not(.mod-skin-dark) #skin-default:before { color: #bdbdbd; } .mod-skin-dark:not(.mod-skin-light) .page-content-wrapper a:not(.btn):not(.badge):not(.dropdown-item):not(.nav-link):not(.navbar-brand):not(.card-title):not([class*="fc-"]):not([class*="text-"]):not(.btn-search-close), .mod-skin-dark:not(.mod-skin-light) .modal-body a:not(.btn):not(.badge):not(.dropdown-item):not(.nav-link):not(.page-link):not(.navbar-brand):not(.card-title) { - color: #ffffff; - /*color: var(--theme-primary-200);*/ } + /*color: #ffffff;*/ + color: var(--theme-primary-200); + } .mod-skin-dark:not(.mod-skin-light) .text-success { color: var(--theme-success-300) !important; } .mod-skin-dark:not(.mod-skin-light) .text-danger {