From a70e423521e688790f2cf9a2b22a69032dce87f3 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 14 Nov 2023 11:16:03 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=B5=EA=B3=84=20=EC=A1=B0=ED=9A=8C?= =?UTF-8?q?=EC=A1=B0=EA=B1=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/stat/stat01010-main.jsp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp index 82a6be77..c70b625c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp @@ -358,11 +358,28 @@ $(document).ready(function(){ //그리드 모양 변경 $P.changeGrid = () => { + //그룹단위 초기화 + if($("#groupLevel2--${pageName}").val() == ""){ + $("#groupLevel3--${pageName}").val(""); + $("#groupLevel3--${pageName}").attr("disabled","disabled"); + } else { + $("#groupLevel3--${pageName}").removeAttr("disabled"); + } + + if($("#groupLevel3--${pageName}").val() == ""){ + $("#groupLevel4--${pageName}").val(""); + $("#groupLevel4--${pageName}").attr("disabled","disabled"); + } else { + $("#groupLevel4--${pageName}").removeAttr("disabled"); + } + + //그리드 초기화 $("#masterThead--${pageName}").html(""); $("#masterTbody--${pageName}").html(""); $("#detailThead--${pageName}").html(""); $("#detailTbody--${pageName}").html(""); + //상단 그리드 var level1Text = $("#groupLevel1--${pageName}").find(":selected").text(); $("#masterThead--${pageName}").append(""+level1Text+"");