// Table
const columns = [
{
accessorKey: 'action',
header: '',
size: '50px',
cell: ({ row }) => {
const rowSpan = row.original.station.reduce((total, station) => total + station.step.length, 0);
return (
{
getDrawing(row.original.wi_number);
setModalWIDrawingShow(true);
}} style={{ cursor: 'pointer' }}
>
|
);
},
},
{
accessorKey: 'wi_number',
header: t('WINumber'),
size: '50px',
cell: ({ row }) => {
const rowSpan = row.original.station.reduce((total, station) => total + station.step.length, 0);
return (
{row.original.wi_number}
|
);
},
},
{
accessorKey: 'status',
header: t('Status'),
size: '25px',
cell: ({ row }) => {
const rowSpan = row.original.station.reduce((total, station) => total + station.step.length, 0);
return
{row.original.status}
| ;
},
},
{
accessorKey: 'version',
header: t('Version'),
size: '25px',
cell: ({ row }) => {
const rowSpan = row.original.station.reduce((total, station) => total + station.step.length, 0);
return
{row.original.version}
| ;
},
},
{
accessorKey: 'station_number',
header: t('StationNumber'),
size: '10px',
cell: ({ row }) => {
const rowSpan = row.original.step.length;
return
{row.original.station_number}
| ;
},
},
{
accessorKey: 'step_id',
header: t('Step'),
size: '10px',
cell: ({ row }) => {
return
{row.original.step_id}
| ;
},
},
{
accessorKey: 'description',
header: t('Description'),
size: '250px',
cell: ({ row }) => {
return
| ;
},
},
{
accessorKey: 'before_image',
header: t('Image'),
size: '100px',
cell: ({ row }) => {
return
}`}) {
e.target.src = '/Images/Other/image-not-found.jpg';
}}
/>
| ;
},
}
];