forked from ddrilling/asb_cloud_front
Fixed data align in numeric table columns
This commit is contained in:
parent
4ccba24db4
commit
dc5b96ccb0
@ -126,7 +126,8 @@ export const makeNumericColumn = (title: string, dataIndex: string,
|
||||
filters: filters,
|
||||
onFilter: filterDelegate ? filterDelegate(dataIndex) : null,
|
||||
sorter: makeNumericSorter(dataIndex),
|
||||
width: width
|
||||
width: width,
|
||||
align: 'right'
|
||||
})
|
||||
|
||||
export const makeNumericColumnPlanFact = (title: string, dataIndex: string, filters: object[], filterDelegate: (key: string | number) => any, width: string) =>
|
||||
|
@ -20,10 +20,10 @@ export default function WellOperationsTable({wellOperations}) {
|
||||
key: el.plan?.id ?? el.fact.id,
|
||||
sectionType: el.plan?.wellSectionTypeName ?? el.fact.wellSectionTypeName,
|
||||
operationName: el.plan?.categoryName ?? el.fact.categoryName,
|
||||
depthPlan: el.plan?.wellDepth?.toFixed(2) ?? '-',
|
||||
depthFact: el.fact?.wellDepth?.toFixed(2) ?? '-',
|
||||
durationHoursPlan: el.plan?.durationHours ?? '-',
|
||||
durationHoursFact: el.fact?.durationHours ?? '-',
|
||||
depthPlan: el.plan?.wellDepth?.toFixed(0) ?? '-',
|
||||
depthFact: el.fact?.wellDepth?.toFixed(0) ?? '-',
|
||||
durationHoursPlan: el.plan?.durationHours?.toFixed(2) ?? '-',
|
||||
durationHoursFact: el.fact?.durationHours?.toFixed(2) ?? '-',
|
||||
commentPlan: el.plan?.comment ?? '-',
|
||||
commentFact: el.fact?.comment ?? '-'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user