From d86ec429a74be48cdecabb0151db5d03297ac638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EC=A7=80=EC=9D=B8?= Date: Mon, 21 Jul 2025 12:05:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EC=A3=BC=EA=B8=B0=EA=B4=80=20>=20?= =?UTF-8?q?=EA=B1=B4=EC=84=A4=ED=98=84=EC=9E=A5=20=EC=9E=85=EB=A0=A5=20:?= =?UTF-8?q?=20=EC=97=AC=EB=9F=AC=20=EC=A0=95=EB=B3=B4=20=EC=9E=85=EB=A0=A5?= =?UTF-8?q?=EC=8B=9C=20=EC=A4=91=EA=B0=84=20=EC=A0=95=EB=B3=B4=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/drilling/input/drilling_input.jsp | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/drilling/input/drilling_input.jsp b/src/main/webapp/WEB-INF/views/drilling/input/drilling_input.jsp index abfcce43..39c6ea25 100644 --- a/src/main/webapp/WEB-INF/views/drilling/input/drilling_input.jsp +++ b/src/main/webapp/WEB-INF/views/drilling/input/drilling_input.jsp @@ -237,8 +237,15 @@ if (request.getSession().getAttribute("CLS") == null || "2".equals(request.getSe 건설사 미선정 - - + `; + if (tableId > 1) { + newTable += ` + + + `; + } + + newTable += ` `; @@ -653,7 +660,7 @@ if (request.getSession().getAttribute("CLS") == null || "2".equals(request.getSe } } - const tableHtml = ` + var tableHtml = `
@@ -706,12 +713,21 @@ if (request.getSession().getAttribute("CLS") == null || "2".equals(request.getSe - + + + +
` ; document.getElementById("table-container").insertAdjacentHTML("beforeend", tableHtml); if (document.getElementsByClassName('table-scrollable').length < 1) {addItem()} // 엑셀로 받아오기 중 실패할 경우 삭제한 빈 양식 원복 + // 첫번째 요소는 삭제하지 않는다. + if (document.getElementsByClassName('table-scrollable').length < 2) {$('#table-container > div:first-child tr:last-child').remove()} + } + + function removeRow(idx) { + $('div[data-index='+ idx +']').remove(); }