From 168e949c00bc42749c08bb80024785b9a8eafbfe Mon Sep 17 00:00:00 2001 From: minkyu Date: Mon, 7 Mar 2022 10:03:55 +0900 Subject: [PATCH] =?UTF-8?q?css=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20grid=20e?= =?UTF-8?q?ditor=20=EA=B8=B0=EB=8A=A5=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/index.jsp | 33 ++++++++++++++++--- .../resource/css/file-drag-and-drop.css | 4 +-- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp index 7e512dc..db0bab9 100644 --- a/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/src/main/webapp/WEB-INF/jsp/index.jsp @@ -14,7 +14,6 @@ - @@ -50,6 +49,8 @@ let excelExport = (event)=>{ excelExportCommon(event, handleExcelDataAll); } function excelExportCommon(event, callback){ + document.querySelector('#lbFile').innerHTML = event.target.files[0].name; + let input = event.target; let reader = new FileReader(); reader.onload = function(){ @@ -171,7 +172,7 @@ function get_header_row(sheet) { let findData = ()=>{ if(instance.getData() == null || instance.getData() == '' || instance.getData().length == 0){ - alert('자료를 첨부하세요.'); + alert('파일을 첨부하세요.'); return false; } @@ -223,6 +224,22 @@ let findData = ()=>{ div.content{ margin: 10px; } + button { + height:27px; + padding: 10px 15px 30px 15px; + margin: 10px; + background: #4f4f4f; + color: aliceblue; + border-radius:3px; + font-size:14px; + font-weight: bold; + display: inline-block; + width: auto; + border-color: #6a5a64; + text-shadow: none; + box-shadow: none; + } + @@ -250,6 +267,10 @@ let findData = ()=>{
+ + + +

첨부파일(xls,xlsx)을 이곳에 올려주세요

@@ -264,7 +285,9 @@ let findData = ()=>{
- +
@@ -342,6 +365,7 @@ const instance = new Grid({ { header: '성명', name: 'name', + editor: 'text', minWidth: 100, filter: 'select', sortingType: 'desc', @@ -350,10 +374,11 @@ const instance = new Grid({ { header: '주민번호', name: 'jid', + editor: 'text', minWidth: 100, filter: 'select', sortingType: 'desc', - sortable: true + sortable: true, }, { header: 'CI', diff --git a/src/main/webapp/resource/css/file-drag-and-drop.css b/src/main/webapp/resource/css/file-drag-and-drop.css index f421b3a..ef4506d 100644 --- a/src/main/webapp/resource/css/file-drag-and-drop.css +++ b/src/main/webapp/resource/css/file-drag-and-drop.css @@ -4,9 +4,9 @@ outline-offset:-10px; text-align: center; transition: all .15s ease-in-out; - width: 300px; + width: 350px; height: 100px; - background-color: gray; + background-color: #cccccc; display: flex; flex-direction: row;