2021-10-19 12:47:21 +05:00
|
|
|
|
import { useState, useEffect } from 'react'
|
|
|
|
|
import { Select } from 'antd'
|
2021-08-12 17:47:16 +05:00
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
import { Column } from './Column'
|
|
|
|
|
import { CustomColumn } from './CustomColumn'
|
2021-08-12 17:47:16 +05:00
|
|
|
|
import ActiveMessagesOnline from './ActiveMessagesOnline'
|
2021-10-19 14:49:53 +05:00
|
|
|
|
import { ModeDisplay } from './ModeDisplay'
|
2021-10-19 12:47:21 +05:00
|
|
|
|
import { UserOfWell } from './UserOfWells'
|
2021-08-12 17:47:16 +05:00
|
|
|
|
|
|
|
|
|
import LoaderPortal from '../../components/LoaderPortal'
|
2021-10-19 12:47:21 +05:00
|
|
|
|
import { Grid, GridItem, Flex } from '../../components/Grid'
|
|
|
|
|
import { Subscribe } from '../../services/signalr'
|
2021-10-20 17:02:51 +05:00
|
|
|
|
import { TelemetryDataSaubService, TelemetryDataSpinService, WellService } from '../../services/api'
|
2021-10-19 12:47:21 +05:00
|
|
|
|
import { invokeWebApiWrapperAsync } from '../../components/factory'
|
2021-08-12 17:47:16 +05:00
|
|
|
|
|
2021-10-19 14:49:53 +05:00
|
|
|
|
import MomentStabPicEnabled from '../../images/DempherOn.png'
|
|
|
|
|
import MomentStabPicDisabled from '../../images/DempherOff.png'
|
|
|
|
|
import SpinPicEnabled from '../../images/SpinEnabled.png'
|
|
|
|
|
import SpinPicDisabled from '../../images/SpinDisabled.png'
|
2021-09-13 17:31:09 +05:00
|
|
|
|
|
2021-08-12 17:47:16 +05:00
|
|
|
|
import '../../styles/message.css'
|
2021-05-19 16:05:01 +05:00
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const { Option } = Select
|
2021-05-19 16:05:01 +05:00
|
|
|
|
|
|
|
|
|
const dash = [7, 3]
|
2021-04-16 15:50:01 +05:00
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const blockHeightGroup = [
|
|
|
|
|
{
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'Высота блока',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'м',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'blockPosition',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#333',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
showGraph: true
|
2021-10-19 12:47:21 +05:00
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'wellDepth',
|
2021-07-29 16:24:01 +05:00
|
|
|
|
units: 'м',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'wellDepth',
|
|
|
|
|
yAccessorName: 'date',
|
2021-07-29 16:24:01 +05:00
|
|
|
|
color: '#333',
|
|
|
|
|
showLine: false,
|
2021-10-19 12:47:21 +05:00
|
|
|
|
xConstValue: 30,
|
|
|
|
|
dash
|
|
|
|
|
}, {
|
|
|
|
|
label: 'Расход',
|
|
|
|
|
units: 'м³/ч',
|
|
|
|
|
xAccessorName: 'flow',
|
|
|
|
|
yAccessorName: 'date',
|
|
|
|
|
color: '#077',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
showGraph: true
|
2021-10-19 12:47:21 +05:00
|
|
|
|
}
|
|
|
|
|
]
|
2021-04-16 15:50:01 +05:00
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const blockSpeedGroup = [
|
|
|
|
|
{
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'Скорость блока',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'м/ч',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'blockSpeed',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#0a0',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
showGraph: true
|
2021-10-19 12:47:21 +05:00
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'blockSpeedSp',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'м/ч',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'blockSpeedSp',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#0a0',
|
|
|
|
|
footer: 'SP',
|
|
|
|
|
dash
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-04-16 15:50:01 +05:00
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const pressureGroup = [
|
|
|
|
|
{
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'Давление',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'атм',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'pressure',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#c00',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
showGraph: true
|
2021-10-19 12:47:21 +05:00
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'pressureSp',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'атм',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'pressureSp',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#c00',
|
|
|
|
|
footer: 'SP',
|
|
|
|
|
dash
|
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'pressureIdle',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'атм',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'pressureIdle',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#c00',
|
|
|
|
|
footer: 'IDLE',
|
|
|
|
|
dash
|
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'pressureDeltaLimitMax',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'атм',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'pressureDeltaLimitMax',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#c00',
|
|
|
|
|
footer: true,
|
|
|
|
|
dash
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-04-16 15:50:01 +05:00
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const axialLoadGroup = [
|
|
|
|
|
{
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'Осевая нагрузка',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'т',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'axialLoad',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#00a',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
showGraph: true
|
2021-10-19 12:47:21 +05:00
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'axialLoadSp',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'т',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'axialLoadSp',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#00a',
|
|
|
|
|
footer: 'SP',
|
|
|
|
|
dash
|
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'axialLoadLimitMax',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'т',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'axialLoadLimitMax',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#00a',
|
|
|
|
|
footer: true,
|
|
|
|
|
dash
|
|
|
|
|
},
|
|
|
|
|
]
|
2021-04-16 15:50:01 +05:00
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const hookWeightGroup = [
|
|
|
|
|
{
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'Вес на крюке',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'т',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'hookWeight',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#0aa',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
showGraph: true
|
2021-10-19 12:47:21 +05:00
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'hookWeightIdle',
|
2021-05-27 13:46:46 +05:00
|
|
|
|
units: 'т',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'hookWeightIdle',
|
|
|
|
|
yAccessorName: 'date',
|
2021-05-27 13:46:46 +05:00
|
|
|
|
color: '#0aa',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
footer: 'IDLE',
|
|
|
|
|
dash
|
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'hookWeightLimitMin',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'т',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'hookWeightLimitMin',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#0aa',
|
|
|
|
|
footer: true,
|
|
|
|
|
dash
|
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'hookWeightLimitMax',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'т',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'hookWeightLimitMax',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#0aa',
|
|
|
|
|
footer: true,
|
2021-05-27 13:46:46 +05:00
|
|
|
|
dash
|
|
|
|
|
},
|
2021-10-19 12:47:21 +05:00
|
|
|
|
{
|
|
|
|
|
label: 'Обороты ротора',
|
|
|
|
|
units: 'об/мин',
|
|
|
|
|
xAccessorName: 'rotorSpeed',
|
|
|
|
|
yAccessorName: 'date',
|
|
|
|
|
color: '#aa0',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
showGraph: true
|
2021-10-19 12:47:21 +05:00
|
|
|
|
}
|
|
|
|
|
]
|
2021-04-16 15:50:01 +05:00
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const rotorTorqueGroup = [
|
|
|
|
|
{
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'Момент на роторе',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'кН·м',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'rotorTorque',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#a0a',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
showGraph: true
|
2021-10-19 12:47:21 +05:00
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'План. Момент на роторе',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'кН·м',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'rotorTorqueSp',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#a0a',
|
|
|
|
|
footer: 'SP',
|
|
|
|
|
dash
|
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'Момент на роторе х.х.',
|
2021-05-27 13:46:46 +05:00
|
|
|
|
units: 'кН·м',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'rotorTorqueIdle',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#a0a',
|
|
|
|
|
footer: 'IDLE',
|
|
|
|
|
dash
|
|
|
|
|
}, {
|
2021-10-19 14:49:53 +05:00
|
|
|
|
label: 'rotorTorqueLimitMax',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
units: 'кН·м',
|
2021-10-19 14:49:53 +05:00
|
|
|
|
xAccessorName: 'rotorTorqueLimitMax',
|
|
|
|
|
yAccessorName: 'date',
|
2021-10-19 12:47:21 +05:00
|
|
|
|
color: '#a0a',
|
|
|
|
|
footer: true,
|
|
|
|
|
dash
|
2021-05-27 13:46:46 +05:00
|
|
|
|
},
|
2021-10-19 12:47:21 +05:00
|
|
|
|
]
|
2021-04-16 15:50:01 +05:00
|
|
|
|
|
|
|
|
|
const paramsGroups = [blockHeightGroup, blockSpeedGroup, pressureGroup, axialLoadGroup, hookWeightGroup, rotorTorqueGroup]
|
|
|
|
|
|
2021-07-20 16:15:44 +05:00
|
|
|
|
const timePeriodCollection = [
|
2021-10-19 12:47:21 +05:00
|
|
|
|
{ value: '60', label: '1 минута' },
|
|
|
|
|
{ value: '300', label: '5 минут' },
|
|
|
|
|
{ value: '600', label: '10 минут' },
|
|
|
|
|
{ value: '1800', label: '30 минут' },
|
|
|
|
|
{ value: '3600', label: '1 час' },
|
|
|
|
|
{ value: '21600', label: '6 часов' },
|
|
|
|
|
{ value: '43200', label: '12 часов' },
|
|
|
|
|
{ value: '86400', label: '24 часа' }
|
2021-07-20 16:15:44 +05:00
|
|
|
|
]
|
|
|
|
|
|
2021-07-27 12:08:11 +05:00
|
|
|
|
const defaultChartInterval = '600'
|
|
|
|
|
|
2021-09-30 11:42:23 +05:00
|
|
|
|
const getLast = (data) =>
|
|
|
|
|
Array.isArray(data) ? data.slice(-1)[0] : data
|
|
|
|
|
|
|
|
|
|
const isMseEnabled = (dataSaub) => {
|
|
|
|
|
const lastData = getLast(dataSaub)
|
|
|
|
|
return (lastData?.mseState && 2) > 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const isTorqueStabEnabled = (dataSpin) => {
|
|
|
|
|
const lastData = getLast(dataSpin)
|
|
|
|
|
return lastData?.state === 7
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const isSpinEnabled = (dataSpin) => {
|
|
|
|
|
const lastData = getLast(dataSpin)
|
|
|
|
|
return lastData?.state > 0 && lastData?.state !== 6
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const getIndexOfDrillingBy = (dataSaub) => {
|
2021-09-30 11:42:23 +05:00
|
|
|
|
const order = {
|
|
|
|
|
0: -1,
|
|
|
|
|
1: 1, // скорость
|
|
|
|
|
2: 2, // давление
|
|
|
|
|
3: 3, // нагрузка
|
|
|
|
|
4: 5, // момент
|
|
|
|
|
}
|
2021-10-19 12:47:21 +05:00
|
|
|
|
const idFeedRegulator = getLast(dataSaub)?.idFeedRegulator ?? 0
|
|
|
|
|
return order[idFeedRegulator] ?? -1
|
2021-09-30 11:42:23 +05:00
|
|
|
|
}
|
|
|
|
|
|
2021-10-19 12:47:21 +05:00
|
|
|
|
export default function TelemetryView({ idWell }) {
|
2021-09-30 11:42:23 +05:00
|
|
|
|
const [dataSaub, setDataSaub] = useState([])
|
|
|
|
|
const [dataSpin, setDataSpin] = useState([])
|
2021-07-27 12:08:11 +05:00
|
|
|
|
const [chartInterval, setChartInterval] = useState(defaultChartInterval)
|
2021-10-20 17:02:51 +05:00
|
|
|
|
const [wellData, setWellData] = useState({idState: 0})
|
2021-08-13 14:46:22 +05:00
|
|
|
|
const [showLoader, setShowLoader] = useState(false)
|
2021-07-23 17:15:33 +05:00
|
|
|
|
|
2021-07-27 12:08:11 +05:00
|
|
|
|
const options = timePeriodCollection.map((line) => <Option key={line.value}>{line.label}</Option>)
|
2021-07-20 16:15:44 +05:00
|
|
|
|
|
2021-10-14 13:00:16 +05:00
|
|
|
|
const handleDataSaub = (data) => {
|
|
|
|
|
if (data) {
|
2021-10-14 11:35:38 +05:00
|
|
|
|
data.forEach((_, idx) => {
|
|
|
|
|
if (data[idx].rotorSpeed < 1)
|
|
|
|
|
data[idx].rotorSpeed = 0;
|
2021-10-14 13:00:16 +05:00
|
|
|
|
if (data[idx].rotorTorque < 1)
|
|
|
|
|
data[idx].rotorTorque = 0;
|
2021-10-14 11:35:38 +05:00
|
|
|
|
data[idx].blockSpeed = Math.abs(data[idx].blockSpeed)
|
|
|
|
|
})
|
2021-10-14 13:00:16 +05:00
|
|
|
|
setDataSaub(data)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const handleDataSpin = (data) => {
|
|
|
|
|
if (data) {
|
|
|
|
|
setDataSpin(data)
|
2021-05-19 16:05:01 +05:00
|
|
|
|
}
|
2021-04-16 15:50:01 +05:00
|
|
|
|
}
|
|
|
|
|
|
2021-05-19 16:05:01 +05:00
|
|
|
|
useEffect(() => {
|
2021-08-17 17:42:42 +05:00
|
|
|
|
invokeWebApiWrapperAsync(
|
2021-08-13 14:46:22 +05:00
|
|
|
|
async () => {
|
2021-09-30 11:42:23 +05:00
|
|
|
|
const dataSaub = await TelemetryDataSaubService.getData(idWell, null, chartInterval)
|
|
|
|
|
const dataSpin = await TelemetryDataSpinService.getData(idWell, null, chartInterval)
|
2021-10-14 13:00:16 +05:00
|
|
|
|
handleDataSaub(dataSaub)
|
|
|
|
|
handleDataSpin(dataSpin)
|
2021-08-13 14:46:22 +05:00
|
|
|
|
},
|
|
|
|
|
setShowLoader,
|
|
|
|
|
`Не удалось получить данные по скважине "${idWell}"`,
|
2021-10-19 12:47:21 +05:00
|
|
|
|
)
|
2021-10-14 13:00:16 +05:00
|
|
|
|
const unsubscribeSaub = Subscribe('hubs/telemetry', 'ReceiveDataSaub', `well_${idWell}`, handleDataSaub)
|
|
|
|
|
const unsubscribeSpin = Subscribe('hubs/telemetry', 'ReceiveDataSpin', `well_${idWell}`, handleDataSpin)
|
2021-09-30 11:42:23 +05:00
|
|
|
|
return () => {
|
|
|
|
|
unsubscribeSaub()
|
|
|
|
|
unsubscribeSpin()
|
|
|
|
|
}
|
2021-08-12 17:47:16 +05:00
|
|
|
|
}, [idWell, chartInterval])
|
2021-05-25 14:20:58 +05:00
|
|
|
|
|
2021-10-20 17:02:51 +05:00
|
|
|
|
useEffect(() => invokeWebApiWrapperAsync(
|
|
|
|
|
async () => {
|
|
|
|
|
const well = await WellService.get(idWell)
|
|
|
|
|
setWellData(well ?? {})
|
|
|
|
|
},
|
|
|
|
|
setShowLoader,
|
|
|
|
|
`Не удалось загрузить данные по скважине "${idWell}"`
|
|
|
|
|
), [idWell])
|
|
|
|
|
|
|
|
|
|
const onStatusChanged = (value) => {
|
|
|
|
|
invokeWebApiWrapperAsync(
|
|
|
|
|
async () => {
|
|
|
|
|
const well = {...wellData, idState: value}
|
|
|
|
|
await WellService.updateWell(idWell, well)
|
|
|
|
|
setWellData(well)
|
|
|
|
|
},
|
|
|
|
|
setShowLoader,
|
|
|
|
|
`Не удалось задать состояние скважины "${idWell}"`
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-19 14:49:53 +05:00
|
|
|
|
return (
|
|
|
|
|
<LoaderPortal show={showLoader}>
|
|
|
|
|
<Grid style={{ gridTemplateColumns: 'auto repeat(6, 1fr)' }}>
|
|
|
|
|
<GridItem col={'1'} row={'1'} colSpan={'8'} style={{ marginBottom: '0.5rem' }}>
|
|
|
|
|
<Flex>
|
|
|
|
|
<ModeDisplay data={dataSaub} />
|
|
|
|
|
<div style={{ marginLeft: '1rem' }}>
|
|
|
|
|
Интервал:
|
|
|
|
|
<Select defaultValue={defaultChartInterval} onChange={setChartInterval}>
|
|
|
|
|
{options}
|
|
|
|
|
</Select>
|
|
|
|
|
</div>
|
2021-10-20 17:02:51 +05:00
|
|
|
|
<div style={{ marginLeft: '1rem'}}>
|
|
|
|
|
Статус:
|
|
|
|
|
<Select value={wellData.idState} onChange={onStatusChanged}>
|
|
|
|
|
<Option value={0} disabled>Неизвестно</Option>
|
|
|
|
|
<Option value={1}>В работе</Option>
|
|
|
|
|
<Option value={2}>Завершено</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
</div>
|
2021-10-19 14:49:53 +05:00
|
|
|
|
<span style={{ flexGrow: 20 }}> </span>
|
|
|
|
|
<img src={isTorqueStabEnabled(dataSpin) ? MomentStabPicEnabled : MomentStabPicDisabled} style={{ marginRight: '15px' }} alt={'TorqueMaster'} />
|
|
|
|
|
<img src={isSpinEnabled(dataSpin) ? SpinPicEnabled : SpinPicDisabled} style={{ marginRight: '15px' }} alt={'SpinMaster'} />
|
|
|
|
|
<h2 style={{ marginBottom: 0, marginRight: '15px', fontWeight: 'bold', color: isMseEnabled(dataSaub) ? 'green' : 'lightgrey' }}>MSE</h2>
|
|
|
|
|
<UserOfWell data={dataSaub} />
|
|
|
|
|
</Flex>
|
2021-10-14 11:35:38 +05:00
|
|
|
|
</GridItem>
|
2021-10-19 14:49:53 +05:00
|
|
|
|
<GridItem col={'1'} row={'2'} rowSpan={'3'} style={{ minWidth: '260px', width: '0.142fr' }}>
|
|
|
|
|
<CustomColumn data={dataSaub} />
|
|
|
|
|
</GridItem>
|
|
|
|
|
{paramsGroups.map((group, index) =>
|
|
|
|
|
<GridItem col={2 + index} row={'2'} className={'border_small'} key={`${group.label}${index}`}>
|
|
|
|
|
<Column
|
|
|
|
|
style={{ width: '13vw' }}
|
|
|
|
|
data={dataSaub}
|
|
|
|
|
lineGroup={group}
|
|
|
|
|
interval={chartInterval}
|
|
|
|
|
headerHeight={'60px'}
|
|
|
|
|
showBorder={getIndexOfDrillingBy(dataSaub) === index} />
|
|
|
|
|
</GridItem>
|
|
|
|
|
)}
|
|
|
|
|
<GridItem col={'2'} row={'3'} colSpan={'7'}>
|
|
|
|
|
<ActiveMessagesOnline idWell={idWell} />
|
|
|
|
|
</GridItem>
|
|
|
|
|
</Grid>
|
|
|
|
|
</LoaderPortal>
|
|
|
|
|
)
|
|
|
|
|
}
|