From 3832434917a3a6753d2a050ff8b076787271c52b Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 24 Oct 2023 13:14:47 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/include/dashboard.jsp | 12 ++++++++---- src/main/webapp/WEB-INF/jsp/include/tail.jsp | 2 ++ src/main/webapp/WEB-INF/jsp/include/top.jsp | 8 ++++---- .../webapp/resources/js/fims/framework/cmm/button.js | 8 ++++++++ 4 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 src/main/webapp/resources/js/fims/framework/cmm/button.js 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