[BO] 일계부 지출 등록, 수정
This commit is contained in:
@@ -178,6 +178,7 @@
|
||||
<!-- 일계부 모달 -->
|
||||
<th:block th:replace="households/modal/modal-daily-income :: modalFragment"/>
|
||||
<th:block th:replace="households/modal/modal-daily-work :: modalFragment"/>
|
||||
<th:block th:replace="households/modal/modal-daily-expense :: modalFragment"/>
|
||||
|
||||
<!-- 조사원 매핑 모달 -->
|
||||
<th:block th:replace="common/modal-researcher-mapping :: modalFragment"/>
|
||||
@@ -341,6 +342,22 @@
|
||||
disableArea.classList.add('input-disabled');
|
||||
}
|
||||
}
|
||||
|
||||
const priceDisabledReset = (el, disableEl) => {
|
||||
let wrap = null;
|
||||
|
||||
if (el.value === '') {
|
||||
wrap = el.closest('td');
|
||||
wrap.querySelector('input').disabled = false;
|
||||
wrap.querySelector('.component-input').classList.remove('input-disabled');
|
||||
}
|
||||
|
||||
if (disableEl.value === '') {
|
||||
wrap = disableEl.closest('td');
|
||||
wrap.querySelector('input').disabled = false;
|
||||
wrap.querySelector('.component-input').classList.remove('input-disabled');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user