조사원 현황 수정
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<button class="modal-close" onclick="closeModal()"></button>
|
||||
<button class="modal-close"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org"
|
||||
layout:decorate="~{layout/layout}">
|
||||
|
||||
<div class="layer-wrap" th:fragment="modalFragment">
|
||||
<div class="component-modal modal02" id="test" data-props-dimm-click="true" data-state="close">
|
||||
<div class="modal-dimm"></div>
|
||||
<div class="modal-frame">
|
||||
<div class="modal-container">
|
||||
<div class="modal-header">
|
||||
<h3 class="modal-tit" >임가 방문 정보</h3>
|
||||
</div>
|
||||
<div class="modal-content">
|
||||
<div class="modal-content-inner">
|
||||
<section>
|
||||
<table class="type-form confirm" th:object="${researcherDto}" >
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>방문일</th>
|
||||
<td>
|
||||
<span th:text="*{id}"></span>
|
||||
</td>
|
||||
<th>관리분야</th>
|
||||
<td>
|
||||
<span th:text="*{name}"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>내용</th>
|
||||
<td>
|
||||
<span th:text="*{regionMainCodeName}"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>답례품 전달</th>
|
||||
<td>
|
||||
<div class="component-input">
|
||||
<label class="radio-inner">
|
||||
<input type="radio" id="radio_status_keep" name="survey_status">
|
||||
<span class="radio-item">
|
||||
<span class="radio-txt">전달</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="component-input">
|
||||
<label class="radio-inner">
|
||||
<input type="radio" id="radio_status_drop" name="survey_status">
|
||||
<span class="radio-item">
|
||||
<span class="radio-txt">미전달</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- 등록 버튼 -->
|
||||
<div class="component-btns bottom-btn-group" th:fragment="modalButtons">
|
||||
<div class="btns-row align-right">
|
||||
<button type="button" class="btn btn-primary" onclick="registerHouseholds()">
|
||||
<span class="btn-txt">등록</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<button class="modal-close" onclick="closeModal()"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script th:inline="javascript">
|
||||
const showHouseholdModal2 = (seq) => {
|
||||
console.log(seq);
|
||||
document.querySelector(".modal02").ui.open();
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</div>
|
||||
</html>
|
||||
Reference in New Issue
Block a user