[Frontend] 上方選單參數調整
This commit is contained in:
parent
bbc58e189f
commit
56f1d758ad
@ -57,7 +57,7 @@
|
|||||||
function getFloDevList() {
|
function getFloDevList() {
|
||||||
let url = baseApiUrl + "/api/Device/GetDeviceList";
|
let url = baseApiUrl + "/api/Device/GetDeviceList";
|
||||||
let sendData = {
|
let sendData = {
|
||||||
main_system_tag: pageAct.sysMainTag,
|
sub_system_tag: pageAct.sysSubTag,
|
||||||
building_tag: pageAct.buiTag,
|
building_tag: pageAct.buiTag,
|
||||||
floor_tag: pageAct.floTag,
|
floor_tag: pageAct.floTag,
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row bg-dark">
|
<div class="row bg-dark">
|
||||||
<h1 id="sysMainText" class="p-2 mx-5 mb-0"></h1>
|
<h1 id="sysSubText" class="p-2 mx-5 mb-0"></h1>
|
||||||
<div class="btn-group my-2" id="floList">
|
<div class="btn-group my-2" id="floList">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
var floList = [];
|
var floList = [];
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#sysMainText").text(pageAct.sysMainName);
|
$("#sysSubText").text(pageAct.sysSubName);
|
||||||
getFloList();
|
getFloList();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -2096,7 +2096,8 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
|
|
||||||
onEvent("active:change", "#sysMonBtnList", function (e, actEle) {
|
onEvent("active:change", "#sysMonBtnList", function (e, actEle) {
|
||||||
if (actEle) {
|
if (actEle) {
|
||||||
pageAct.sysMainTag = $(actEle).prop("id").split("mainSysBtn")[1];
|
pageAct.sysMainTag = $(actEle).data("maintag");
|
||||||
|
pageAct.sysSubTag = $(actEle).prop("id").split("subSysBtn")[1];
|
||||||
pageAct.sysMainName = $(actEle).text();
|
pageAct.sysMainName = $(actEle).text();
|
||||||
}
|
}
|
||||||
$(this).trigger("change");
|
$(this).trigger("change");
|
||||||
@ -2120,8 +2121,8 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
let strHtml = ``;
|
let strHtml = ``;
|
||||||
$.each(res.data.history_Main_Systems, (index, mainSysObj) => {
|
$.each(res.data.history_Main_Systems, (index, subSysObj) => {
|
||||||
strHtml += `<button id="mainSysBtn${mainSysObj.main_system_tag}" class="dropdown-item" type="button" data-page="systemMonitor" name="topFunBtn">${mainSysObj.full_name}</button>`;
|
strHtml += `<button id="subSysBtn${subSysObj.sub_system_tag}" data-maintag="${subSysObj.main_system_tag}"class="dropdown-item" type="button" data-page="systemMonitor" name="topFunBtn">${subSysObj.full_name}</button>`;
|
||||||
})
|
})
|
||||||
$("#sysMonBtnList").append(strHtml);
|
$("#sysMonBtnList").append(strHtml);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user