From 59e3fc4617db4353f245429329c4eac342baf3c0 Mon Sep 17 00:00:00 2001 From: subsub Date: Tue, 10 Sep 2024 10:56:11 +0900 Subject: [PATCH] =?UTF-8?q?24/09/10=20=EC=A3=BC=EC=86=8C=EB=A1=9D=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=20=ED=83=80=EB=B7=B8=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20width=20=EA=B0=92=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/web/addr/include/addrListforExcel.jsp | 8 +++++++- src/main/webapp/js/web/addr/init.js | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/web/addr/include/addrListforExcel.jsp b/src/main/webapp/WEB-INF/jsp/web/addr/include/addrListforExcel.jsp index cee87411..86aaf5d5 100644 --- a/src/main/webapp/WEB-INF/jsp/web/addr/include/addrListforExcel.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/addr/include/addrListforExcel.jsp @@ -97,7 +97,13 @@ $(document).ready(function(){ colIdx = colIdx / 2; colIdx = colIdx - 1; - $(".select_adr_hd div").eq(colIdx).width(colWid); + if(titleIndex != 0){ + $(".select_adr_hd div").eq(colIdx).width(colWid); + console.log("d1") + }else{ + console.log("a1") + $(".select_adr_hd div").eq(0).width(colWid+40); + } }) }) }) diff --git a/src/main/webapp/js/web/addr/init.js b/src/main/webapp/js/web/addr/init.js index b42e19e7..c4d18648 100644 --- a/src/main/webapp/js/web/addr/init.js +++ b/src/main/webapp/js/web/addr/init.js @@ -72,7 +72,11 @@ $(document).ready(function(){ console.log(titleIndex) if(titleIndex != 0){ $('.select_adr_hd>div').eq(titleIndex).css('width', column._column.width); - }else{} + console.log("d") + }else{ + console.log("a") + $('.select_adr_hd>div').eq(0).css('width', column._column.width + 40); + } }); $tableExcel.on("scrollHorizontal",function(left){