[Frontend] 系統監控左上角系統大類 動態呈現

This commit is contained in:
dev01 2022-11-16 15:15:36 +08:00
parent 30e926f95c
commit 8da05829db
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@
</style>
<div class="container-fluid">
<div class="row bg-dark">
<h1 class="p-2 mx-5 mb-0">電錶系統</h1>
<h1 id="sysMainText" class="p-2 mx-5 mb-0"></h1>
<div class="btn-group my-2" id="floList">
</div>
@ -18,8 +18,9 @@
<script>
var floList = [];
$(function () {
$("#sysMainText").text(pageAct.sysMainName);
getFloList();
})

View File

@ -2095,6 +2095,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
onEvent("active:change", "#sysMonBtnList", function (e, actEle) {
if (actEle) {
pageAct.sysMainTag = $(actEle).prop("id").split("mainSysBtn")[1];
pageAct.sysMainName = $(actEle).text();
}
$(this).trigger("change");
})