주소록 엑셀 upload log 처리
This commit is contained in:
parent
fa2ea7ccdc
commit
45eaf99f86
@ -368,6 +368,7 @@ function processExcelData(data) {
|
||||
|
||||
// 텍스트 데이터 처리 함수
|
||||
function processTextData(text) {
|
||||
console.log(' :: processTextData :: ');
|
||||
var lines = text.split('\n'); // 각 줄을 배열로 분리
|
||||
var keys = ['A', 'B', 'C', 'D', 'E', 'F', 'G'];
|
||||
var tableData = [];
|
||||
@ -386,6 +387,7 @@ function processTextData(text) {
|
||||
|
||||
//공통 테이블 업데이트 함수
|
||||
function updateTable(tableData) {
|
||||
console.log(' :: updateTable :: ');
|
||||
$tableExcel.setColumns([ // 열 정의를 다시 설정
|
||||
{formatter: "rowSelection", titleFormatter: "rowSelection", clipboard: false, hozAlign: "center", headerHozAlign: "center", headerSort: false, cellClick: function(e, cell) {
|
||||
cell.getRow().toggleSelect();
|
||||
@ -400,11 +402,13 @@ function updateTable(tableData) {
|
||||
{title: "G", field: "G", hozAlign: "center", headerHozAlign: "center", width: 125, validator: ["maxLength:100", "string"]}
|
||||
]);
|
||||
|
||||
console.log(' :: $tableExcel.setData(tableData) :: ');
|
||||
$tableExcel.setData(tableData).then(() => {
|
||||
// rowTotCnt 업데이트
|
||||
document.getElementById("rowTotCnt").innerText = tableData.length;
|
||||
});
|
||||
|
||||
console.log(' :: fn_loadRemoveActive :: ');
|
||||
fn_loadRemoveActive();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user