修改authcode全域變數
This commit is contained in:
parent
21e3890686
commit
a671bc2a55
@ -447,7 +447,6 @@
|
|||||||
"title": "功能",
|
"title": "功能",
|
||||||
"data": "role_guid",
|
"data": "role_guid",
|
||||||
"render": function (data, type, row, meta) {
|
"render": function (data, type, row, meta) {
|
||||||
pageAct.authCode.push(row.authCode);
|
|
||||||
let btnDiv = creDiv(["row", "m-0", "justify-content-center"], { "style": "gap:10px" });
|
let btnDiv = creDiv(["row", "m-0", "justify-content-center"], { "style": "gap:10px" });
|
||||||
btnDiv.append(creBtnHtml("刪除", "rolAuthDelBtn" + data, null, ["btn", "btn-danger"], { "toggle": "modal", "target": "#delModal", "id": data, "authcode": row.authCode }));
|
btnDiv.append(creBtnHtml("刪除", "rolAuthDelBtn" + data, null, ["btn", "btn-danger"], { "toggle": "modal", "target": "#delModal", "id": data, "authcode": row.authCode }));
|
||||||
return btnDiv.outerHtml();
|
return btnDiv.outerHtml();
|
||||||
@ -456,6 +455,18 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
rolAuthTable = new YourTeam.JqDataTables.getTableByAjax(ajaxObj, tag, null, columns, column_defs);
|
rolAuthTable = new YourTeam.JqDataTables.getTableByAjax(ajaxObj, tag, null, columns, column_defs);
|
||||||
|
|
||||||
|
let url = baseApiUrl + "/User/RoleAuthList";
|
||||||
|
objSendData.Data = { SelectedRoleId: pageAct.selRolAuth }
|
||||||
|
ytAjax = new YourTeam.Ajax(url, objSendData, function (res) {
|
||||||
|
if (!res || res.code != "0000" || !res.data) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$.each(res.data, function (i, v) {
|
||||||
|
pageAct.authCode.push(v.authCode);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, null, "POST").send();
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadAuthPageTable() {
|
function loadAuthPageTable() {
|
||||||
|
@ -2036,10 +2036,6 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
var loadingTip = '';
|
var loadingTip = '';
|
||||||
var pageAct = {}; //記錄全頁面已選擇項目
|
var pageAct = {}; //記錄全頁面已選擇項目
|
||||||
pageAct.AreaTag = "TPE";
|
pageAct.AreaTag = "TPE";
|
||||||
if (localStorage.getItem("buiTag")) {
|
|
||||||
pageAct.buiTag = localStorage.getItem("buiTag");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (location.href.indexOf("ord") != -1) {
|
if (location.href.indexOf("ord") != -1) {
|
||||||
location.href = "/file/index.html"
|
location.href = "/file/index.html"
|
||||||
}
|
}
|
||||||
@ -2153,11 +2149,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
} else {
|
} else {
|
||||||
let strHtml = ``;
|
let strHtml = ``;
|
||||||
$.each(res.data, (index, buiObj) => {
|
$.each(res.data, (index, buiObj) => {
|
||||||
let actStr = "";
|
strHtml += `<a id="buiBtn${buiObj.building_tag}" data-urn="${buiObj.urn_3D}" class="dropdown-item" href="javascript:;">${buiObj.full_name}</a>`;
|
||||||
if (pageAct.buiTag == buiObj.building_tag) {
|
|
||||||
actStr = "active";
|
|
||||||
}
|
|
||||||
strHtml += `<a id="buiBtn${buiObj.building_tag}" data-urn="${buiObj.urn_3D}" class="dropdown-item ${actStr}" href="javascript:;">${buiObj.full_name}</a>`;
|
|
||||||
})
|
})
|
||||||
$("#buiList").append(strHtml).droSetItem(); //droSetItem 預設第一筆 active
|
$("#buiList").append(strHtml).droSetItem(); //droSetItem 預設第一筆 active
|
||||||
}
|
}
|
||||||
@ -2249,9 +2241,9 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
onEvent("active:change", "#buiList", function (e, actEle) {
|
onEvent("active:change", "#buiList", function (e, actEle) {
|
||||||
if (actEle) {
|
if (actEle) {
|
||||||
pageAct.buiTag = $(actEle).prop("id").split("buiBtn")[1];
|
pageAct.buiTag = $(actEle).prop("id").split("buiBtn")[1];
|
||||||
localStorage.setItem("buiTag", pageAct.buiTag);
|
|
||||||
pageAct.urn = $(actEle).data("urn");
|
pageAct.urn = $(actEle).data("urn");
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
$(window).on("timeout:3s", function () {
|
$(window).on("timeout:3s", function () {
|
||||||
@ -2403,7 +2395,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
//loadErrRecTable2($(oriEle).data("number"));
|
//loadErrRecTable2($(oriEle).data("number"));
|
||||||
//loadErrRecTable();
|
//loadErrRecTable();
|
||||||
loadErr($(oriEle).data("number"));
|
loadErr($(oriEle).data("number"));
|
||||||
typeof subDeviceSetTable != "undefined" ? subDeviceSetTable($(oriEle).data("number")) : ""
|
subDeviceSetTable ? subDeviceSetTable($(oriEle).data("number")) : ""
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -2650,9 +2642,8 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
ytAjax = new YourTeam.Ajax(url, objSendData, function (res) {
|
ytAjax = new YourTeam.Ajax(url, objSendData, function (res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (!res || res.code != "0000" || !res.data) {
|
if (!res || res.code != "0000" || !res.data) {
|
||||||
console.log('aaaaa');
|
|
||||||
} else {
|
} else {
|
||||||
console.log('bbbbb');
|
|
||||||
$("#sysMonBtnList").html("")
|
$("#sysMonBtnList").html("")
|
||||||
$.each(res.data.history_Main_Systems, (index, mainSysObj) => {
|
$.each(res.data.history_Main_Systems, (index, mainSysObj) => {
|
||||||
$.each(mainSysObj.history_Sub_systems, (index2, subSysObj) => {
|
$.each(mainSysObj.history_Sub_systems, (index2, subSysObj) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user