diff --git a/frontend/src/pages/relay/TaskDetailPage.vue b/frontend/src/pages/relay/TaskDetailPage.vue index c46c3b5..fdb94ff 100644 --- a/frontend/src/pages/relay/TaskDetailPage.vue +++ b/frontend/src/pages/relay/TaskDetailPage.vue @@ -391,6 +391,12 @@ const writeSummary = computed(() => n: reportItems.value.filter((i) => i.workStatus === k).length, })), ) +// 현재 탭에서 보이는 항목 수(0이면 빈 안내 표시) +const writeVisible = computed(() => + writeTab.value === 'all' + ? reportItems.value.length + : writeCatCount(writeTab.value), +) function cancelReportForm() { reportingCpId.value = null reportItems.value = [] @@ -440,6 +446,10 @@ const viewGroups = computed(() => { function viewCatCount(cat: ChecklistCategory): number { return viewItems.value.filter((i) => i.category === cat).length } +// 현재 탭에서 보이는 항목 수(0이면 빈 안내 표시) +const viewVisible = computed(() => + viewTab.value === 'all' ? viewItems.value.length : viewCatCount(viewTab.value), +) const reporterInitial = computed(() => openedReport.value?.reporterName?.[0] ?? '?') // 담당자 액션 카드 테마(시안): changes→빨강 / review→앰버 / done→초록 / 그 외→accent const assigneeCardClass = computed(() => { @@ -1680,10 +1690,10 @@ function badgeFor(name: string | undefined): { label: string; cls: string } {