Fixed data align in numeric table columns

This commit is contained in:
KharchenkoVV 2021-08-31 11:55:26 +05:00
parent 4ccba24db4
commit dc5b96ccb0
2 changed files with 6 additions and 5 deletions

View File

@ -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) =>

View File

@ -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 ?? '-'
}