[BO] 수정사항 반영 (1)

This commit is contained in:
kangsunlee
2025-07-16 11:48:14 +09:00
parent 1e3e61422c
commit 78dee1f4fe
9 changed files with 67 additions and 14 deletions

View File

@@ -281,8 +281,8 @@
onclick="location.href='/households/create'">
<span class="btn-txt">임가 등록</span>
</button>
<!-- 관리자, 지방실사만 노출 -->
<button type="button" class="btn" th:if="${userRole != 'ROLE_RESEARCHER'}" onclick="showResearcherModal();">
<!-- 관리자만 노출 -->
<button type="button" class="btn" th:if="${userRole == 'ROLE_ADMIN'}" onclick="showResearcherModal('LIST');">
<span class="btn-txt">조사원 매핑</span>
</button>
</div>

View File

@@ -381,7 +381,7 @@
JSON.stringify(dataOj),
function(response) { // 성공
alert("등록이 완료되었습니다.");
location.href = '/households';
location.href = '/households/' + f.householdSeq.value;
},
function (code, rstData) {
if(code == 422) alert(rstData.responseText);

View File

@@ -112,9 +112,9 @@
</tbody>
</table>
<div class="component-btns bottom-btn-group">
<div class="component-btns bottom-btn-group" th:if="${userRole == 'ROLE_ADMIN'}">
<div class="btns-row align-right">
<button type="button" class="btn" th:if="${userRole == 'ROLE_ADMIN'}" onclick="showResearcherModal();">
<button type="button" class="btn" onclick="showResearcherModal();">
<span class="btn-txt">조사원 매핑</span>
</button>
<button type="button" class="btn btn-primary" onclick="goUpdateForm();">