[BO] 사용하지않는 엑셀다운로드 api, 버튼 삭제
This commit is contained in:
@@ -164,20 +164,6 @@
|
||||
<span class="btn-txt">목록</span>
|
||||
</button>
|
||||
</div>
|
||||
<!-- <div class="btns-col-2 align-right _excelDownload" th:unless="${activeProfile != 'local'}">-->
|
||||
<!-- <button type="button" class="btn" data-tab-type="daily-record" data-tab-value="tab1" onclick="goExcel(this)">-->
|
||||
<!-- <span class="btn-txt">엑셀 다운로드 <i class="ico-download" aria-hidden="true"></i></span>-->
|
||||
<!-- </button>-->
|
||||
<!-- <button type="button" class="btn" data-tab-type="forest-product" data-tab-value="tab2" onclick="goExcel(this)">-->
|
||||
<!-- <span class="btn-txt">엑셀 다운로드 <i class="ico-download" aria-hidden="true"></i></span>-->
|
||||
<!-- </button>-->
|
||||
<!-- <button type="button" class="btn" data-tab-type="bank-auto-transfer" data-tab-value="tab3" onclick="goExcel(this)">-->
|
||||
<!-- <span class="btn-txt">엑셀 다운로드 <i class="ico-download" aria-hidden="true"></i></span>-->
|
||||
<!-- </button>-->
|
||||
<!-- <button type="button" class="btn" data-tab-type="household-visit" data-tab-value="tab4" onclick="goExcel(this)">-->
|
||||
<!-- <span class="btn-txt">엑셀 다운로드 <i class="ico-download" aria-hidden="true"></i></span>-->
|
||||
<!-- </button>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -428,36 +414,6 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// 엑셀 다운로드
|
||||
const goExcel = (el) => {
|
||||
let url = '';
|
||||
if (el.dataset.tabValue === 'tab1') {
|
||||
url = $('.tab-content .daily-record-list').is(':hidden') ? '/api/household/dailyRecordStatus/excel' : '/api/household/dailyRecordsStatus/excel';
|
||||
} else if (el.dataset.tabValue === 'tab2') {
|
||||
url = $('.tab-content .forest-product').is(':hidden') ? '' : '/api/household/forestProduct/excel';
|
||||
} else if (el.dataset.tabValue === 'tab3') {
|
||||
url = $('.tab-content .bank-auto-transfer').is(':hidden') ? '' : '/api/household/bankAutoTransfer/excel';
|
||||
} else if (el.dataset.tabValue === 'tab4') {
|
||||
url = $('.tab-content .household-visit').is(':hidden') ? '' : '/api/household/visitInfos/excel';
|
||||
}
|
||||
|
||||
console.log('goExcel', el.dataset.tabValue, url);
|
||||
|
||||
const f = document.reqForm;
|
||||
const data = $(f).serializeObject();
|
||||
|
||||
// size 를 제거하면 전체 목록을 가져온다.
|
||||
delete data.size;
|
||||
|
||||
if (url !== '') {
|
||||
location.href = url + '?' + new URLSearchParams(data).toString();
|
||||
} else {
|
||||
console.warn('엑셀 다운르도 경로 없음.')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</section>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user