diff --git a/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp b/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp index bae43aa7..fb401d0c 100644 --- a/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp @@ -22,7 +22,7 @@ @@ -38,7 +38,7 @@ @@ -58,7 +58,7 @@ @@ -78,7 +78,7 @@ @@ -184,6 +184,10 @@ function fnLoadStatisticsData(){ //콘텐츠(차트) 표시 function fnRenderDashboardContents(data){ + + mappingButtonAndMenu("btnGoToCrdn","단속 관리"); + mappingButtonAndMenu("btnGoToOpnn","의견제출 관리"); + $("#lineChartCardBody svg").remove(); $("#doughnutChart1CardBody svg").remove(); $("#doughnutChart2CardBody svg").remove(); diff --git a/src/main/webapp/WEB-INF/jsp/include/tail.jsp b/src/main/webapp/WEB-INF/jsp/include/tail.jsp index c9445492..152e081f 100644 --- a/src/main/webapp/WEB-INF/jsp/include/tail.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/tail.jsp @@ -57,6 +57,8 @@ + + diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp index 646546db..ffe277b3 100644 --- a/src/main/webapp/WEB-INF/jsp/include/top.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp @@ -220,10 +220,10 @@ function fn_securityModeToggle(flag, elementId){ } -/*--------------------- 통합조회 클릭 이벤트 ---------------------*/ -$("#btnFastSearch--top").on( "click", function() { - $("#menus").find("div[data-i18n='통합조회']").parent("a").trigger("click"); -}); +/*--------------------- 통합조회 버튼 클릭 이벤트 ---------------------*/ +mappingButtonAndMenu("btnFastSearch--top","통합조회"); + + /*--------------------- 사용자 메뉴얼 클릭 이벤트 ---------------------*/ $("#btnDownloadMenual--top").on( "click", function() { diff --git a/src/main/webapp/resources/js/fims/framework/cmm/button.js b/src/main/webapp/resources/js/fims/framework/cmm/button.js new file mode 100644 index 00000000..c922fc81 --- /dev/null +++ b/src/main/webapp/resources/js/fims/framework/cmm/button.js @@ -0,0 +1,8 @@ +/** + * 버튼과 메뉴를 매핑한다. + */ +function mappingButtonAndMenu(buttonId, menuNm){ + $("#"+buttonId).on( "click", function() { + $("#menus").find("div[data-i18n='"+menuNm+"']").parent("a").trigger("click"); + }); +} \ No newline at end of file