조사원 현황 - 임가매핑 수정
This commit is contained in:
@@ -56,17 +56,14 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col text-start">
|
||||
<div class="fw-bolder text-muted">
|
||||
TOTAL. <span id="household-totalElements"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="researcher-tab1" style="display: none;">
|
||||
<button type="button" class="btn" onclick="location.href='/researcher/researchers'">
|
||||
<span class="btn-txt">임가매핑</span>
|
||||
</button>
|
||||
</div>
|
||||
<p class="input-label" style="font-size: 16px;">
|
||||
총 <span id="household-totalElements"></span>건
|
||||
</p>
|
||||
|
||||
<div id="researcher-tab1" >
|
||||
<button type="button" class="btn" th:data-region-main-code="${researcherDto.regionMainCode}" onclick="showHouseholdModal(this)">
|
||||
<span class="btn-txt">임가매핑</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- hidden parameters -->
|
||||
@@ -147,9 +144,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div th:replace="common/modal-household-mapping:: modalFragment"></div>
|
||||
</section>
|
||||
<th:block layout:fragment="script">
|
||||
<script th:inline="javascript">
|
||||
|
||||
// 탭 클릭 시 함수 호출
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const tabButtons = document.querySelectorAll('.tab-label');
|
||||
@@ -157,7 +156,7 @@
|
||||
button.addEventListener('click', function () {
|
||||
const tabValue = this.getAttribute('data-tab-value');
|
||||
const form = document.householdReqForm;
|
||||
form.page.value = 1; // 페이지 초기화
|
||||
form.page.value = 0; // 페이지 초기화
|
||||
document.getElementById('monthTab2').style.display = 'block';
|
||||
if (tabValue === 'tab1') {
|
||||
getHouseholdList(0);
|
||||
@@ -193,7 +192,7 @@
|
||||
$(response.content).each((idx, ct) => {
|
||||
tbody.append(
|
||||
`
|
||||
<tr data-id="${ct.id}">
|
||||
<tr data-id="${ct.seq}">
|
||||
<td class="underline"><a href="">${ct.householdNum}</a></td>
|
||||
<td>${ct.ownerName}</td>
|
||||
<td>${ct.phone}</td>
|
||||
@@ -221,10 +220,10 @@
|
||||
const paging = $('.paging');
|
||||
paging.empty();
|
||||
paging.append(
|
||||
uiUtil.getPagingUI(pageNo, f.size.value, response.totalPages,
|
||||
uiUtil.getPagingUI(pageNo, response.size, response.totalPages,
|
||||
(movePageNo) => {
|
||||
f.page.value = movePageNo;
|
||||
goSearch();
|
||||
getHouseholdList(movePageNo);
|
||||
}));
|
||||
|
||||
},
|
||||
@@ -237,6 +236,7 @@
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// 임가 방문 정보
|
||||
const getHouseholdVisitList = (pageNo) => {
|
||||
const f = document.householdReqForm;
|
||||
@@ -244,7 +244,7 @@
|
||||
|
||||
let dataObj = {
|
||||
page: f.page.value,
|
||||
adminSeq: f.seq.value,
|
||||
seq: f.seq.value,
|
||||
searchMonth: f.searchMonth.value,
|
||||
};
|
||||
|
||||
@@ -264,7 +264,7 @@
|
||||
<tr data-id="${ct.id}">
|
||||
<td>
|
||||
<label>
|
||||
<input class="form-check-input" name="selectIds" type="checkbox" value="${ct.id}"/>
|
||||
<input class="form-check-input" name="selectIds" type="checkbox" value="${ct.seq}"/>
|
||||
</label>
|
||||
</td>
|
||||
<td class="underline"><a href="">${ct.householdNum}</a></td>
|
||||
@@ -291,10 +291,10 @@
|
||||
const paging = $('.paging');
|
||||
paging.empty();
|
||||
paging.append(
|
||||
uiUtil.getPagingUI(pageNo, f.size.value, response.totalPages,
|
||||
uiUtil.getPagingUI(pageNo,response.size, response.totalPages,
|
||||
(movePageNo) => {
|
||||
f.page.value = movePageNo;
|
||||
goSearch();
|
||||
getHouseholdVisitList(movePageNo);
|
||||
}));
|
||||
|
||||
},
|
||||
@@ -359,6 +359,10 @@
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</th:block>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user