업무구분 변경시 새창 띄우기 추가

main
이범준 1 year ago
parent 6f150bb349
commit e8a91b2b81

@ -65,7 +65,7 @@
<!-- User --> <!-- User -->
<li class="nav-item navbar-dropdown dropdown-user dropdown"> <li id="userNav--top" class="nav-item navbar-dropdown dropdown-user dropdown">
<a href="javascript:void(0);" data-bs-toggle="dropdown" <a href="javascript:void(0);" data-bs-toggle="dropdown"
class="d-flex align-items-center nav-link dropdown-toggle hide-arrow"> class="d-flex align-items-center nav-link dropdown-toggle hide-arrow">
<div class="avatar d-flex"> <div class="avatar d-flex">

@ -3,11 +3,13 @@
<!-- Menu --> <!-- Menu -->
<aside id="layout-menu" class="layout-menu menu-vertical menu bg-menu-theme"> <aside id="layout-menu" class="layout-menu menu-vertical menu bg-menu-theme">
<div class="app-brand demo"> <div class="app-brand demo">
<a href="javascript:wctx.home();" class="app-brand-link"> <a href="javascript:fnHome();" class="app-brand-link">
<span class="app-brand-logo demo"> <span class="app-brand-logo demo">
<img src="<c:url value='/'/>resources/image/fims/framework/login/mainLogo_01.png" width="36px" height="36px" alt="logo" /> <img src="<c:url value='/'/>resources/image/fims/framework/login/mainLogo_01.png" width="36px" height="36px" alt="logo" />
</span> </span>
<span class="app-brand-text demo menu-text fw-bolder ms-2">과태료통합관리시스템</span> <span id="home" class="app-brand-text demo menu-text fw-bolder ms-2" style="text-align:center;">
과태료통합관리시스템
</span>
</a> </a>
<a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large ms-auto"> <a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large ms-auto">
<i class="bx bx-chevron-left bx-sm align-middle"></i> <i class="bx bx-chevron-left bx-sm align-middle"></i>
@ -20,6 +22,9 @@
</aside> </aside>
<!-- / Menu --> <!-- / Menu -->
<c:set var="userMenus" scope="request"> <c:set var="userMenus" scope="request">
function fnHome(){
top.location.href = wctx.url("/")+"?taskSeCd="+$("#layout-navbar input[name='taskSeCd']:checked").val();
}
let userMenus = ${userMenus}; let userMenus = ${userMenus};

@ -37,7 +37,22 @@
<jsp:include page="/WEB-INF/jsp/include/tail.jsp" /> <jsp:include page="/WEB-INF/jsp/include/tail.jsp" />
<c:set var="onload"> <c:set var="onload">
$("#layout-navbar input[name='taskSeCd'][value='DPV']").prop("checked",true);
if("${param.taskSeCd}" == "" || $("#layout-navbar").find("input[name='taskSeCd'][value='${param.taskSeCd}']").length == 0){
$("#layout-navbar input[name='taskSeCd'][value='DPV']").prop("checked", true);
} else {
$("#layout-navbar input[name='taskSeCd'][value='${param.taskSeCd}']").prop("checked", true);
}
var checkedId = $("#layout-navbar input[name='taskSeCd']:checked")[0].id;
var checkedText = $("label[for='"+checkedId+"']").text();
$("#home").html("과태료통합관리시스템<br/>("+checkedText+")");
$("#layout-navbar input[name='taskSeCd']").on("click", function(){
$("#userNav--top").click();
window.open(wctx.url("/")+"?taskSeCd="+this.value, "_blank", "");
return false;
});
</c:set> </c:set>
<script> <script>

Loading…
Cancel
Save