diff --git a/src/components/Table/index.ts b/src/components/Table/index.ts index ff22c51..cbe9dee 100644 --- a/src/components/Table/index.ts +++ b/src/components/Table/index.ts @@ -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) => diff --git a/src/pages/Cluster/WellOperationsTable.jsx b/src/pages/Cluster/WellOperationsTable.jsx index adb16e9..bebb25c 100644 --- a/src/pages/Cluster/WellOperationsTable.jsx +++ b/src/pages/Cluster/WellOperationsTable.jsx @@ -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 ?? '-' }