대시보드 화면 제거

dev
이범준 5 months ago
parent cc76989a18
commit 4bdf1714dc

@ -17,16 +17,20 @@
<div class="sticky-wrapper"> <div class="sticky-wrapper">
<ul id="menu-tabs" class="nav nav-tabs sticky-element" role="tablist" style="--bs-nav-link-padding-y: .125rem; background-image: linear-gradient(#8AB9DB, whitesmoke);"></ul> <ul id="menu-tabs" class="nav nav-tabs sticky-element" role="tablist" style="--bs-nav-link-padding-y: .125rem; background-image: linear-gradient(#8AB9DB, whitesmoke);"></ul>
</div> </div>
<template id="main-tab"><li class="nav-item" role="presentation"> <template id="main-tab">
<li class="nav-item" role="presentation">
<div class="nav-link" role="tab" data-bs-toggle="tab" data-bs-target="{tab-target}" aria-controls="{index}" tabindex="-1"> <div class="nav-link" role="tab" data-bs-toggle="tab" data-bs-target="{tab-target}" aria-controls="{index}" tabindex="-1">
<span onclick="openMenu('{url}');">{name}</span> <span onclick="openMenu('{url}');">{name}</span>
<span onclick="mainTabs.close('{url}')" class="ms-2" style="display: none;">&times;</span> <span onclick="mainTabs.close('{url}')" class="ms-2" style="display: none;">&times;</span>
</div> </div>
</li></template> </li>
</template>
<div id="main-tab-content" class="tab-content shadowed"> <div id="main-tab-content" class="tab-content shadowed">
<div id="dashboard" class="tab-pane fade" role="tabpanel"><jsp:include page="/WEB-INF/jsp/dashboard.jsp" /></div>
</div> </div>
<template id="tab-pane"><div id="{index}" class="tab-pane fade" role="tabpanel">{inner-content}</div></template> <template id="tab-pane">
<div id="{index}" class="tab-pane fade" role="tabpanel">{inner-content}</div>
</template>
</div> </div>
<%--/ Content --%> <%--/ Content --%>
<%-- Footer --%> <%-- Footer --%>
@ -68,9 +72,10 @@ const FETCH_XXL = 1000;
${functions} ${functions}
${userMenus} ${userMenus}
let sticky = {id: -1, index: "dashboard", name: "대시보드", url: "/dashboard.do", parentID: null, description: "대시보드"}, const FIRST_PAGE = wctx.url("/adds/nims/dsuseMgtReceipt.do");
mainTabs = new TabControl({
sticky: sticky, let mainTabs = new TabControl({
sticky: {},
getMenu: (url) => menuSupport.getMenu(url), getMenu: (url) => menuSupport.getMenu(url),
onDatasetChange: tabs => { onDatasetChange: tabs => {
let template = document.getElementById("main-tab").innerHTML, let template = document.getElementById("main-tab").innerHTML,
@ -81,7 +86,6 @@ let sticky = {id: -1, index: "dashboard", name: "대시보드", url: "/dashboard
$("#menu-tabs .nav-item").hover( $("#menu-tabs .nav-item").hover(
function() { function() {
let span = $(this).find("span.ms-2"); let span = $(this).find("span.ms-2");
if (span.attr("onclick").includes(sticky.url)) return;
span.show(); span.show();
}, },
function() { function() {
@ -142,7 +146,7 @@ $(".sticky-element").sticky({
$(function() { $(function() {
${onload} ${onload}
mainTabs.getTab(sticky.url); mainTabs.open(FIRST_PAGE);
}); });
//# sourceURL=index.jsp //# sourceURL=index.jsp

Loading…
Cancel
Save