260624_03_ENH: label 일괄 관리 및 문자 발송 팝업에 사용가능 변수 추가

This commit is contained in:
2026-06-24 10:39:47 +09:00
parent 438e6258dc
commit c4f8e630ea
9 changed files with 224 additions and 111 deletions

View File

@@ -19,6 +19,7 @@ import {toLocalDateString} from "@/lib/gwcf/date";
import {
getMonitoringDisplayRow,
} from "@/lib/gwcf/performance-status";
import {PERFORMANCE_FIELD_LABELS} from "@/lib/gwcf/field-labels";
const today = toLocalDateString();
const todayTime = new Date(`${today}T00:00:00`).getTime();
@@ -114,7 +115,7 @@ const MonitoringPage = () => {
const columns = useMemo<DataTableColumn<PerformanceFull>[]>(() => [
{
accessorKey: "performanceName",
header: "사업명",
header: PERFORMANCE_FIELD_LABELS.performanceName,
cell: ({row}) => (
<div className="max-w-[180px] whitespace-normal py-2 text-sm font-semibold leading-5">
{row.original.performanceName}
@@ -123,12 +124,12 @@ const MonitoringPage = () => {
},
{
id: "monitoringDate",
header: "일정",
header: PERFORMANCE_FIELD_LABELS.monitoringDate,
cell: ({row}) => row.original.performanceMonitoringSchedule?.monitoringDate?.slice(5) || "-",
},
{
id: "monitoringTime",
header: "시간",
header: PERFORMANCE_FIELD_LABELS.monitoringTimeInfo,
cell: ({row}) => row.original.performanceMonitoringSchedule?.monitoringTimeInfo || "-",
},
], []);
@@ -242,11 +243,11 @@ const MonitoringPage = () => {
{selected.performanceMonitoringSchedule?.monitoringDate} {selected.performanceMonitoringSchedule?.monitoringTimeInfo}
</div>
<div className="grid grid-cols-[80px_1fr] border-b">
<div className="bg-muted px-3 py-2 text-sm font-semibold">사업명</div>
<div className="bg-muted px-3 py-2 text-sm font-semibold">{PERFORMANCE_FIELD_LABELS.performanceName}</div>
<div className="px-3 py-2 text-sm">{selected.performanceName}</div>
</div>
<div className="grid grid-cols-[80px_1fr]">
<div className="bg-muted px-3 py-2 text-sm font-semibold">장소</div>
<div className="bg-muted px-3 py-2 text-sm font-semibold">{PERFORMANCE_FIELD_LABELS.monitoringAddress}</div>
<div className="px-3 py-2 text-sm">{selected.performanceMonitoringSchedule?.monitoringAddress}</div>
</div>
</section>