From 7a8969f82191e9bf7125e7cfec10a36767b87acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8B=9C=EC=98=A8=ED=8C=8C=ED=8C=8C?= Date: Sun, 6 Mar 2022 14:44:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EB=AF=BC=EB=B2=88=ED=98=B8=20CI=20?= =?UTF-8?q?=EB=B3=80=ED=99=98=20=EC=8B=9C=EC=8A=A4=ED=85=9C=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=EA=B5=AC=ED=98=84=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/index.jsp | 31 +++++++++++++++++---------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp index 3dc7272..8812554 100644 --- a/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/src/main/webapp/WEB-INF/jsp/index.jsp @@ -170,13 +170,21 @@ function get_header_row(sheet) { let findData = ()=>{ - const jsonParam = JSON.stringify(instance.getData() - .map(row => { - let obj = {}; - obj.name = row.name; - obj.jid = row.jid; - return obj; - })); + if(instance.getData() == null || instance.getData() == '' || instance.getData().length == 0){ + alert('자료를 첨부하세요.'); + return false; + } + + + const jsonParam = JSON.stringify( + instance.getData() + .map(row => { + let obj = {}; + obj.name = row.name; + obj.jid = row.jid; + return obj; + }) + ); $.ajax({ type : "POST", @@ -230,9 +238,10 @@ let findData = ()=>{
메뉴 세부정보