From 4e78347c601001b5a4ddf62d9ce74c644ae5da92 Mon Sep 17 00:00:00 2001 From: goodmice Date: Mon, 18 Oct 2021 13:27:46 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D0=BE=D0=BB=D0=B1=D0=B5=D1=86=20?= =?UTF-8?q?=D1=81=D0=B5=D0=BA=D1=86=D0=B8=D0=B8=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D1=91=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/WellOperations/DrillProcessFlow.jsx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/pages/WellOperations/DrillProcessFlow.jsx b/src/pages/WellOperations/DrillProcessFlow.jsx index 3b38a4c..c078fe0 100644 --- a/src/pages/WellOperations/DrillProcessFlow.jsx +++ b/src/pages/WellOperations/DrillProcessFlow.jsx @@ -1,23 +1,15 @@ import { useState, useEffect } from 'react' - import { - makeColumn, - makeNumericMinMax + makeNumericMinMax, + makeNumericStartEnd } from '../../components/Table' import LoaderPortal from '../../components/LoaderPortal' import { invokeWebApiWrapperAsync } from '../../components/factory' -import { EditableTable, SelectFromDictionary } from '../../components/Table' +import { EditableTable } from '../../components/Table' import { DrillFlowChartService } from '../../services/api' -import { dictionarySectionType, getByKeyOrReturnKey } from './dictionary' const columns = [ - makeColumn('Конструкция секции','idWellSectionType', { - editable: true, - input: , - width: 160, - render: (_, record)=>getByKeyOrReturnKey(dictionarySectionType, record.idWellSectionType) - }), - makeNumericMinMax('Глубина', 'depth'), + makeNumericStartEnd('Глубина', 'depth'), makeNumericMinMax('Нагрузка', 'axialLoad'), makeNumericMinMax('Давление', 'pressure'), makeNumericMinMax('Момент на ВСП', 'rotorTorque'),