조사원 현황 수정

This commit is contained in:
주수현
2025-06-19 08:26:23 +09:00
parent b4ca0b7ced
commit ba3b6376f6
3 changed files with 131 additions and 40 deletions

View File

@@ -56,15 +56,6 @@
</select>
</div>
</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-researcher-seq="${researcherDto.seq}" th:data-region-main-code="${researcherDto.regionMainCode}" th:data-researcher-name="${researcherDto.name}" onclick="showHouseholdModal(this)">
<span class="btn-txt">임가매핑</span>
</button>
</div>
<!-- hidden parameters -->
<input name="page" th:field="*{page}" type="hidden"/>
@@ -73,37 +64,50 @@
<div class="tab-body">
<div class="tab-content" data-tab-value="tab1">
<div class="content-inner">
<table>
<thead>
<tr>
<th>임가번호</th>
<th>경영주명</th>
<th>휴대폰번호</th>
<th>실사</th>
<th>지역</th>
<th>세부지역</th>
<th>업종 대분류</th>
<th>업종 중분류1</th>
<th>유지여부</th>
</tr>
</thead>
<tbody id="household-list">
</tbody>
</table>
<section class="table-group">
<div class="table-tit-group">
<h3>총 <strong id="household-totalElements"></strong>건</h3>
<div class="component-btns bottom-btn-group">
<div class="btns-row align-right">
<button type="button" class="btn small" th:data-researcher-seq="${researcherDto.seq}" th:data-region-main-code="${researcherDto.regionMainCode}" th:data-researcher-name="${researcherDto.name}" onclick="showHouseholdModal(this)">
<span class="btn-txt">임가 매핑</span>
</button>
</div>
</div>
</div>
<table>
<thead>
<tr>
<th>임가번호</th>
<th>경영주명</th>
<th>휴대폰번호</th>
<th>실사</th>
<th>지역</th>
<th>세부지역</th>
<th>업종 대분류</th>
<th>업종 중분류1</th>
<th>유지여부</th>
</tr>
</thead>
<tbody id="household-list">
</tbody>
</table>
</section>
</div>
</div>
<div class="tab-content" data-tab-value="tab2">
<div class="component-btns bottom-btn-group">
<div class="btns-row">
<div class="btns-col-1 align-right">
<button type="button" class="btn" onClick="goRemove();">
<span class="btn-txt">삭제 <i class="ico-print" aria-hidden="true"></i></span>
</button>
</div>
</div>
</div>
<div class="content-inner">
<section class="table-group">
<div class="table-tit-group">
<h3>총 <strong id="household-visit-totalElements"></strong>건</h3>
<div class="component-btns bottom-btn-group">
<div class="btns-row align-right">
<button type="button" class="btn small btn-secondary" onClick="goRemove();">
<span class="btn-txt">삭제</span>
</button>
</div>
</div>
</div>
<table>
<thead>
<tr>
@@ -122,6 +126,7 @@
<tbody id="household-visit-list">
</tbody>
</table>
</section>
</div>
</div>
</div>
@@ -145,10 +150,10 @@
</div>
</form>
<div th:replace="common/modal-household-mapping:: modalFragment"></div>
<div th:replace="researcher/modal/modal-household-visit:: modalFragment"></div>
</section>
<th:block layout:fragment="script">
<script th:inline="javascript">
// 탭 클릭 시 함수 호출
document.addEventListener('DOMContentLoaded', function () {
const tabButtons = document.querySelectorAll('.tab-label');
@@ -251,7 +256,7 @@
'/api/researcher/visitHouseholdList',
dataObj,
function (response) {
$('#household-totalElements').text(response.totalElements);
$('#household-visit-totalElements').text(response.totalElements);
// List 구성하기
const tbody = $('#household-visit-list');
@@ -266,7 +271,7 @@
<input class="form-check-input" name="selectIds" type="checkbox" value="${ct.seq}"/>
</label>
</td>
<td class="underline"><a href="">${ct.householdNum}</a></td>
<td class="underline"><a href="#" onclick="showHouseholdModal2(${ct.seq});">${ct.householdNum}</a></td>
<td>${ct.ownerName}</td>
<td>${ct.visitDate}</td>
<td>${ct.managementType}</td>