1ㅊㅏ완료

This commit is contained in:
2026-01-05 02:36:13 +09:00
parent c2f499037b
commit 615a221aa5
9 changed files with 600 additions and 252 deletions

View File

@@ -45,10 +45,10 @@
<tbody>
<tr v-for="week in weeklyList" :key="week.reportWeek">
<td>
<strong class="text-primary">{{ week.reportWeek }}</strong>
<strong>{{ week.reportYear }} {{ week.reportWeek }}</strong>
</td>
<td>
<small>{{ formatDateRange(week.weekStartDate, week.weekEndDate) }}</small>
<td class="small">
{{ formatDate(week.weekStartDate) }} ~ {{ formatDate(week.weekEndDate) }}
</td>
<td>
<span class="badge bg-secondary me-1" v-for="p in week.projects.slice(0, 3)" :key="p">
@@ -311,6 +311,11 @@ function getWeekDateRange(year: number, week: number): string {
return `${fmt(monday)}~${fmt(sunday)}`
}
function formatDate(dateStr: string) {
if (!dateStr) return ''
return dateStr.split('T')[0].replace(/-/g, '.')
}
function formatDateRange(start: string, end: string) {
if (!start || !end) return '-'
const s = new Date(start)