From e9e9f41f2a331d15e5dd0085653a5f2e50c9e185 Mon Sep 17 00:00:00 2001 From: smanylov Date: Mon, 26 Jan 2026 16:38:24 +0700 Subject: [PATCH] add support id --- src/app/components/tanstakTable.tsx | 38 +++++++++++++++++++++++++++++ src/app/styles/pages-styles.scss | 4 +++ 2 files changed, 42 insertions(+) diff --git a/src/app/components/tanstakTable.tsx b/src/app/components/tanstakTable.tsx index d104cce..cc0ac74 100644 --- a/src/app/components/tanstakTable.tsx +++ b/src/app/components/tanstakTable.tsx @@ -33,6 +33,7 @@ type FileItem = { status?: string; protectStatus: string; _original?: ApiFile; + supportId: number; }; type ApiFile = { @@ -44,6 +45,7 @@ type ApiFile = { updatedAt: string; status: string; protectStatus: string; + supportId: number; }; type ApiResponse = { @@ -146,6 +148,7 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) { uploadDate: newDate, status: item.status, protectStatus: item.protectStatus, + supportId: item.supportId, _original: item }; }); @@ -174,6 +177,41 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) { // Определение колонок const columns = useMemo[]>( () => [ + { + accessorKey: 'id', + header: ({ column }) => ( +
+ + ID + + +
+ ), + cell: ({ row }) => { + return ( +
+ {row.original.supportId ? row.original.supportId: '-'} +
+ ) + }, + }, { accessorKey: 'fileName', header: ({ column }) => ( diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index f478e23..340b296 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -695,6 +695,10 @@ &:last-child { padding-right: 15px; } + + &:has(.table-item-id) { + width: 20px; + } } .table-item {