diff --git a/src/pages/WellOperations/WellOperationsEditor.jsx b/src/pages/WellOperations/WellOperationsEditor.jsx index 8d9a48e..25daed9 100644 --- a/src/pages/WellOperations/WellOperationsEditor.jsx +++ b/src/pages/WellOperations/WellOperationsEditor.jsx @@ -20,11 +20,18 @@ const basePageSize = 160; const format='YYYY.MM.DD HH:mm' const numericSortColumnOptions = Object.assign({ - sorter: makeNumericSorter('wellDepth') + sorter: makeNumericSorter('wellDepth'), + render:(value) => +
+ {value} +
}, numericColumnOptions) const durationFormattedColumnOptions = Object.assign({ - render:(value) => Number.isNaN(value.toFixed(2)) ? "-" : value.toFixed(2) + render:(value) => +
+ {Number.isNaN(value.toFixed(2)) ? "-" : value.toFixed(2)} +
}, numericColumnOptions) @@ -81,7 +88,10 @@ export const WellOperationsEditor = ({idWell, idType}) => { width:200, input:, sorter: makeDateSorter('startDate'), - render:(_, record) => moment.utc(record.startDate).local().format(format) + render:(_, record) => +
+ {moment.utc(record.startDate).local().format(format)} +
}), makeColumn('Часы','durationHours', durationFormattedColumnOptions), makeColumn('Комментарий','comment', {editable:true, input: