[BO] 사용하지않는 엑셀다운로드 api, 버튼 삭제
This commit is contained in:
@@ -350,31 +350,6 @@
|
||||
);
|
||||
}
|
||||
|
||||
function goExcel() {
|
||||
const selectedTab = document.querySelector('.tab-label[aria-selected="true"]');
|
||||
|
||||
let url = '';
|
||||
if (selectedTab.dataset.tabValue === 'tab1') {
|
||||
url = '/api/researcher/mappingHouseholdList/excel';
|
||||
} else if (selectedTab.dataset.tabValue === 'tab2') {
|
||||
url = '/api/researcher/visitHousehold/list/excel';
|
||||
}
|
||||
|
||||
const f = document.householdReqForm;
|
||||
f.isPaging.value = false;
|
||||
|
||||
const data = $(f).serializeObject();
|
||||
|
||||
// size 를 제거하면 전체 목록을 가져온다.
|
||||
delete data.size;
|
||||
|
||||
if (url !== '') {
|
||||
location.href = url + '?' + new URLSearchParams(data).toString();
|
||||
} else {
|
||||
console.warn('엑셀 다운르도 경로 없음.')
|
||||
}
|
||||
}
|
||||
|
||||
// 체크박스 선택/해제
|
||||
function toggleCheckbox(oj) {
|
||||
$('input[name=selectIds]').prop("checked", oj.checked);
|
||||
|
||||
Reference in New Issue
Block a user