[FO] 일계부 TODO 처리

This commit is contained in:
김현주
2025-07-10 15:41:29 +09:00
parent 5d4f67929a
commit 4ba5324c48
2 changed files with 5 additions and 9 deletions

View File

@@ -674,8 +674,6 @@
async _getData(month) {
await new Promise(resolve => setTimeout(resolve, DatepickerComponent.CONSTANTS.LOADING_DELAY))
//const response = await fetch(`http://localhost:8888/assets/json/${month}.json`)
//TODO
const response = await fetch(`/api/record/calendar/${month}`)
return await response.json()
}
@@ -742,7 +740,6 @@
// viewDate: instanceof Date
console.log('changeDateCallback', data, currentDate, viewDate);
// TODO
formControl.setDetail(data, currentDate, viewDate);
}, function(monthKey, currentDate) {
console.log('changeMonthCallback', monthKey, currentDate);

View File

@@ -32,9 +32,8 @@
<div class="component-input">
<label class="switch-inner type-txt">
<span class="switch-label">수입</span>
<!-- TODO : DONE 유지여부 판단하기 -->
<input type="checkbox" name="incomeStatus" value="TARGET" data-target="income"
th:checked="${#strings.equals(dailyRecord.incomeStatus, 'TARGET') or #strings.equals(dailyRecord.incomeStatus, 'DONE')}">
th:checked="${#strings.equals(dailyRecord.incomeStatus, 'TARGET') or #strings.equals(dailyRecord.incomeStatus, 'TODAY_NONE')}">
<span class="switch-item">
<span class="switch-handle"></span>
</span>
@@ -44,7 +43,7 @@
<label class="switch-inner type-txt">
<span class="switch-label">임업노동 투입</span>
<input type="checkbox" name="workStatus" value="TARGET" data-target="work"
th:checked="${#strings.equals(dailyRecord.workStatus, 'TARGET') or #strings.equals(dailyRecord.workStatus, 'DONE')}">
th:checked="${#strings.equals(dailyRecord.workStatus, 'TARGET') or #strings.equals(dailyRecord.workStatus, 'TODAY_NONE')}">
<span class="switch-item">
<span class="switch-handle"></span>
</span>
@@ -54,7 +53,7 @@
<label class="switch-inner type-txt">
<span class="switch-label">지출</span>
<input type="checkbox" name="expenseStatus" value="TARGET" data-target="expense"
th:checked="${#strings.equals(dailyRecord.expenseStatus, 'TARGET') or #strings.equals(dailyRecord.expenseStatus, 'DONE')}">
th:checked="${#strings.equals(dailyRecord.expenseStatus, 'TARGET') or #strings.equals(dailyRecord.expenseStatus, 'TODAY_NONE')}">
<span class="switch-item">
<span class="switch-handle"></span>
</span>
@@ -64,7 +63,7 @@
<label class="switch-inner type-txt">
<span class="switch-label">동력 사용시간</span>
<input type="checkbox" name="powerStatus" value="TARGET" data-target="power"
th:checked="${#strings.equals(dailyRecord.powerStatus, 'TARGET') or #strings.equals(dailyRecord.powerStatus, 'DONE')}">
th:checked="${#strings.equals(dailyRecord.powerStatus, 'TARGET') or #strings.equals(dailyRecord.powerStatus, 'TODAY_NONE')}">
<span class="switch-item">
<span class="switch-handle"></span>
</span>
@@ -74,7 +73,7 @@
<label class="switch-inner type-txt">
<span class="switch-label">임업생산물 중 자가소비량</span>
<input type="checkbox" name="forestryStatus" value="TARGET" data-target="forestry"
th:checked="${#strings.equals(dailyRecord.forestryStatus, 'TARGET') or #strings.equals(dailyRecord.forestryStatus, 'DONE')}">
th:checked="${#strings.equals(dailyRecord.forestryStatus, 'TARGET') or #strings.equals(dailyRecord.forestryStatus, 'TODAY_NONE')}">
<span class="switch-item">
<span class="switch-handle"></span>
</span>