[BO] 임가현황 - 은행자동이체내역 작업 중 (1)
This commit is contained in:
@@ -186,6 +186,9 @@
|
||||
|
||||
<!-- 임산물현황등록 모달 -->
|
||||
<th:block th:replace="households/modal/modal-forest-product :: modalFragment"/>
|
||||
|
||||
<!-- 은행자동이체 모달 -->
|
||||
<th:block th:replace="households/modal/modal-bank-auto-transfer-income :: modalFragment"/>
|
||||
</section>
|
||||
|
||||
<section layout:fragment="script">
|
||||
@@ -340,6 +343,22 @@
|
||||
disableArea.classList.add('input-disabled');
|
||||
}
|
||||
}
|
||||
|
||||
// 직접입력 선택시 input 활성화
|
||||
const selectedSelf = (el) => {
|
||||
const tr = el.closest('tr');
|
||||
const unitArea = tr.querySelector('.self-input');
|
||||
const unitInput = tr.querySelector('.self-input input');
|
||||
|
||||
if (el.value?.endsWith('.self')) {
|
||||
unitInput.disabled = false;
|
||||
unitArea.classList.remove('input-disabled');
|
||||
} else {
|
||||
unitInput.disabled = true;
|
||||
unitInput.value = '';
|
||||
unitArea.classList.add('input-disabled');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user