260625_07_ENH: table 간격 조정 -> 사업유형, 단체명, 사업명 ... 처리
This commit is contained in:
@@ -360,11 +360,44 @@ const PerformancePage = () => {
|
|||||||
enableSorting: false
|
enableSorting: false
|
||||||
},
|
},
|
||||||
]: []) as DataTableColumn<PerformanceFull>[],
|
]: []) as DataTableColumn<PerformanceFull>[],
|
||||||
{id: "businessType", header: PERFORMANCE_FIELD_LABELS.businessType, cell: ({row}) => getCodeLabel(codes, "business_type", row.original.businessType)},
|
{
|
||||||
|
id: "businessType",
|
||||||
|
header: PERFORMANCE_FIELD_LABELS.businessType,
|
||||||
|
cell: ({row}) => {
|
||||||
|
const value = getCodeLabel(codes, "business_type", row.original.businessType);
|
||||||
|
return (
|
||||||
|
<div className="max-w-[130px] truncate" title={value}>
|
||||||
|
{value}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
size: 130,
|
||||||
|
maxSize: 130,
|
||||||
|
},
|
||||||
{id: "genre", header: PERFORMANCE_FIELD_LABELS.performanceGenre, cell: ({row}) => getCodeLabel(codes, "genre", row.original.performanceGenre)},
|
{id: "genre", header: PERFORMANCE_FIELD_LABELS.performanceGenre, cell: ({row}) => getCodeLabel(codes, "genre", row.original.performanceGenre)},
|
||||||
{id: "area", header: PERFORMANCE_FIELD_LABELS.performanceArea, cell: ({row}) => getCodeLabel(codes, "area", row.original.performanceArea)},
|
{id: "area", header: PERFORMANCE_FIELD_LABELS.performanceArea, cell: ({row}) => getCodeLabel(codes, "area", row.original.performanceArea)},
|
||||||
{accessorKey: "artistName", header: PERFORMANCE_FIELD_LABELS.artistName},
|
{
|
||||||
{accessorKey: "performanceName", header: PERFORMANCE_FIELD_LABELS.performanceName},
|
accessorKey: "artistName",
|
||||||
|
header: PERFORMANCE_FIELD_LABELS.artistName,
|
||||||
|
cell: ({row}) => (
|
||||||
|
<div className="max-w-[120px] truncate" title={row.original.artistName}>
|
||||||
|
{row.original.artistName}
|
||||||
|
</div>
|
||||||
|
),
|
||||||
|
size: 120,
|
||||||
|
maxSize: 120,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
accessorKey: "performanceName",
|
||||||
|
header: PERFORMANCE_FIELD_LABELS.performanceName,
|
||||||
|
cell: ({row}) => (
|
||||||
|
<div className="max-w-[300px] truncate" title={row.original.performanceName}>
|
||||||
|
{row.original.performanceName}
|
||||||
|
</div>
|
||||||
|
),
|
||||||
|
size: 300,
|
||||||
|
maxSize: 300,
|
||||||
|
},
|
||||||
{id: "startMonth", header: PERFORMANCE_FIELD_LABELS.performanceStartMonth,
|
{id: "startMonth", header: PERFORMANCE_FIELD_LABELS.performanceStartMonth,
|
||||||
accessorFn: (row) => row.performanceStartMonth ?? 0,
|
accessorFn: (row) => row.performanceStartMonth ?? 0,
|
||||||
cell: ({row}) => row.original.performanceStartMonth === 0? "미정":`${row.original.performanceStartMonth}월`},
|
cell: ({row}) => row.original.performanceStartMonth === 0? "미정":`${row.original.performanceStartMonth}월`},
|
||||||
|
|||||||
Reference in New Issue
Block a user