260625_06_ENH: table 간격 조정, body width 제한, 일부 label 수정, 지역 수정가능하게 열기, 지자체 양식 다운로드 버튼 제거

This commit is contained in:
2026-06-25 13:56:22 +09:00
parent 0853db0c2a
commit 3bcbfca4e9
6 changed files with 24 additions and 22 deletions

View File

@@ -237,7 +237,7 @@ function LocalGovernmentReviewRow({
return (
<div className="space-y-2 border-b p-3">
<div className="font-semibold">지자체</div>
<div className="font-semibold">자체 보고서</div>
<div className="flex flex-wrap items-center gap-2">
<StatusPill variant={display.variant}>{display.label}</StatusPill>
<ReviewFileActions
@@ -485,8 +485,8 @@ export function PerformanceDetailDialog({
setIsEditing(false);
};
const downloadTemplate = (reviewType: number) => {
downloadFromUrl(`/api/review/template/download/${reviewType}`);
const downloadTemplate = (reviewType: number, classification: number) => {
downloadFromUrl(`/api/review/template/download/${reviewType}/${classification}`);
};
return (
@@ -506,7 +506,11 @@ export function PerformanceDetailDialog({
<DetailRow label={PERFORMANCE_FIELD_LABELS.monitoringAdd}>{draft.id % 100 !== 1? "추가" : ""}</DetailRow>
<DetailRow label={PERFORMANCE_FIELD_LABELS.businessType}>{getCodeLabel(codes, "business_type", draft.businessType)}</DetailRow>
<DetailRow label={PERFORMANCE_FIELD_LABELS.performanceGenre}>{getCodeLabel(codes, "genre", draft.performanceGenre)}</DetailRow>
<DetailRow label={PERFORMANCE_FIELD_LABELS.performanceArea}>{getCodeLabel(codes, "area", draft.performanceArea)}</DetailRow>
<DetailRow label={PERFORMANCE_FIELD_LABELS.performanceArea}>
{isEditing ? (
<FilterSelect value={String(draft.performanceArea ?? "")} onChange={(value) => updateDraft("performanceArea", Number(value))} options={codes.area ?? []} placeholder={PERFORMANCE_FIELD_LABELS.performanceArea} />
) : getCodeLabel(codes, "area", draft.performanceArea)}
</DetailRow>
<DetailRow label={PERFORMANCE_FIELD_LABELS.performanceAreaDetail}>{isEditing ? <Input value={draft.performanceDetail["performanceAreaDetail"] ?? ""} onChange={(event) => updateDetail("performanceAreaDetail", event.target.value)} /> : draft.performanceDetail["performanceAreaDetail"] ?? ""}</DetailRow>
<DetailRow label={PERFORMANCE_FIELD_LABELS.artistName}>{draft.artistName}</DetailRow>
<DetailRow label={PERFORMANCE_FIELD_LABELS.performanceName}>{isEditing ? <Input value={draft.performanceName} onChange={(event) => updateDraft("performanceName", event.target.value)} /> : draft.performanceName}</DetailRow>
@@ -563,14 +567,10 @@ export function PerformanceDetailDialog({
<div className="flex flex-wrap items-center justify-between gap-2 border-b bg-muted px-3 py-2">
<div className="font-semibold">평가 및 모니터링 현황</div>
<div className="flex flex-wrap gap-2">
<Button type="button" size="sm" variant="outline" onClick={() => downloadTemplate(1)}>
<Button type="button" size="sm" variant="outline" onClick={() => downloadTemplate(1, Number(String(performance?.id ?? 0).charAt(0)))}>
<Download className="h-4 w-4" />
모니터링 양식
</Button>
<Button type="button" size="sm" variant="outline" onClick={() => downloadTemplate(3)}>
<Download className="h-4 w-4" />
지자체 양식
</Button>
</div>
</div>
<LocalGovernmentReviewRow performance={performance ?? draft} codes={codes} />