[BO] 임가현황 - 엑셀 다운로드 작업 중 (3)

This commit is contained in:
kangsunlee
2025-07-10 18:28:41 +09:00
parent cb93b98fd5
commit ae89471577
27 changed files with 443 additions and 189 deletions

View File

@@ -275,7 +275,7 @@
<button type="button" class="btn" onclick="showExcelHouseholdModal();">
<span class="btn-txt">엑셀 업로드 <i class="ico-download ico-small" aria-hidden="true"></i></span>
</button>
<button type="button" class="btn" onclick="goExcel();">
<button type="button" class="btn" onclick="showExcelDownloadModal();">
<span class="btn-txt">엑셀 다운로드 <i class="ico-download ico-small" aria-hidden="true"></i></span>
</button>
<!-- 관리자만 노출 -->
@@ -294,6 +294,7 @@
<div th:replace="common/modal-researcher-mapping :: modalFragment"></div>
<div th:replace="households/modal/modal-excel-household :: modalFragment"></div>
<div th:replace="households/modal/modal-excel-download :: modalFragment"></div>
</section>
<section layout:fragment="script">
@@ -484,24 +485,6 @@
}
</script>
<script>
// 엑셀 다운로드
const goExcel = () => {
const url = '/api/excel/household';
const f = document.reqForm;
const data = $(f).serializeObject();
// 선택된 엑셀 템플릿 파일 항목
data.templateType = '';
if (url !== '') {
excelDownload(url, data);
} else {
console.warn('엑셀 다운르도 경로 없음.');
}
}
</script>
<script>
// 체크박스 전체 선택
document.getElementById('checkedAll').addEventListener('change', function () {