forked from ddrilling/asb_cloud_front
hotfix. CF2-75, CF2-76. Скорость тальблока берётся по модулю; Момент ротора меньше 1 считается 0
This commit is contained in:
parent
c2243f1eb6
commit
f3c42568dc
@ -181,12 +181,22 @@ export default function TelemetryView({idWell}) {
|
||||
|
||||
const handleDataSaub = (data) => {
|
||||
if (data) {
|
||||
data.forEach((_, idx) => {
|
||||
if (data[idx].rotorSpeed < 1)
|
||||
data[idx].rotorSpeed = 0;
|
||||
data[idx].blockSpeed = Math.abs(data[idx].blockSpeed)
|
||||
})
|
||||
setDataSaub(data)
|
||||
}
|
||||
}
|
||||
|
||||
const handleDataSpin = (data) => {
|
||||
if (data) {
|
||||
data.forEach((_, idx) => {
|
||||
if (data[idx].rotorSpeed < 1)
|
||||
data[idx].rotorSpeed = 0;
|
||||
data[idx].blockSpeed = Math.abs(data[idx].blockSpeed)
|
||||
})
|
||||
setDataSpin(data)
|
||||
}
|
||||
}
|
||||
@ -230,7 +240,7 @@ export default function TelemetryView({idWell}) {
|
||||
</GridItem>
|
||||
<GridItem col='1' row='2' rowSpan='3' style={{minWidth:'260px', width:'0.142fr'}}>
|
||||
<CustomColumn data={dataSaub}/>
|
||||
</GridItem>
|
||||
</GridItem>
|
||||
{paramsGroups.map((group, index) =>
|
||||
<GridItem col={2 + index} row='2' className='border_small' key={group.label}>
|
||||
<Column
|
||||
@ -239,7 +249,8 @@ export default function TelemetryView({idWell}) {
|
||||
lineGroup={group}
|
||||
interval={chartInterval}
|
||||
showBorder={getIndexOfDrillingBy(dataSaub) === index}/>
|
||||
</GridItem>)}
|
||||
</GridItem>
|
||||
)}
|
||||
|
||||
<GridItem col='2' row='3' colSpan='7'>
|
||||
<ActiveMessagesOnline idWell={idWell}/>
|
||||
|
Loading…
Reference in New Issue
Block a user