diff options
Diffstat (limited to 'lib/welding/table/ocr-table-columns.tsx')
| -rw-r--r-- | lib/welding/table/ocr-table-columns.tsx | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/lib/welding/table/ocr-table-columns.tsx b/lib/welding/table/ocr-table-columns.tsx index 93ee1004..d4ca9f5f 100644 --- a/lib/welding/table/ocr-table-columns.tsx +++ b/lib/welding/table/ocr-table-columns.tsx @@ -51,7 +51,25 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<OcrRow> enableSorting: false, enableHiding: false, }, - + { + accessorKey: "fileName", + header: ({ column }) => ( + <DataTableColumnHeaderSimple column={column} title="file Name" /> + ), + cell: ({ getValue }) => { + const fileName = getValue() as string + return ( + <div className="text-sm"> + {/* <Badge variant="outline" className="font-mono text-xs"> */} + {fileName || "N/A"} + {/* </Badge> */} + + </div> + ) + }, + enableSorting: true, + enableHiding: false, + }, // Report No 컬럼 { accessorKey: "reportNo", @@ -233,7 +251,25 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<OcrRow> // }, // enableSorting: true, // }, - + { + accessorKey: "inspectionDate", + header: ({ column }) => ( + <DataTableColumnHeaderSimple column={column} title="Inspection(Confirmed) Date" /> + ), + cell: ({ getValue }) => { + const inspectionDate = getValue() as string + return ( + <div className="text-sm"> + {/* <Badge variant="outline" className="font-mono text-xs"> */} + {inspectionDate || "N/A"} + {/* </Badge> */} + + </div> + ) + }, + enableSorting: true, + enableHiding: false, + }, { accessorKey: "userName", |
