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 = ()=>{
메뉴 세부정보