|
|
@ -27,21 +27,6 @@ window.onload = function(){
|
|
|
|
document.querySelector('#findBtn').addEventListener('click', findData);
|
|
|
|
document.querySelector('#findBtn').addEventListener('click', findData);
|
|
|
|
stateDragAndDrop.callback = excelExport; //File Drag&Drop callback 이벤트 초기화
|
|
|
|
stateDragAndDrop.callback = excelExport; //File Drag&Drop callback 이벤트 초기화
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let readExcel = ()=>{
|
|
|
|
|
|
|
|
let input = event.target;
|
|
|
|
|
|
|
|
let reader = new FileReader();
|
|
|
|
|
|
|
|
reader.onload = function () {
|
|
|
|
|
|
|
|
let data = reader.result;
|
|
|
|
|
|
|
|
let workBook = XLSX.read(data, { type: 'binary' });
|
|
|
|
|
|
|
|
workBook.SheetNames.forEach(function (sheetName) {
|
|
|
|
|
|
|
|
let rows = XLSX.utils.sheet_to_json(workBook.Sheets[sheetName]);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
reader.readAsBinaryString(input.files[0]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let excelExport = (event)=>{
|
|
|
|
let excelExport = (event)=>{
|
|
|
@ -361,6 +346,10 @@ const instance = new Grid({
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
rowHeaders: ['rowNum'],
|
|
|
|
rowHeaders: ['rowNum'],
|
|
|
|
bodyHeight: 450,
|
|
|
|
bodyHeight: 450,
|
|
|
|
|
|
|
|
draggable: true,
|
|
|
|
|
|
|
|
columnOptions: {
|
|
|
|
|
|
|
|
resizable: true
|
|
|
|
|
|
|
|
},
|
|
|
|
columns: [
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
header: '성명',
|
|
|
|
header: '성명',
|
|
|
|