Убрал картинки и захардкож

This commit is contained in:
Alexey 2021-07-26 09:44:54 +05:00
parent a56ca1671a
commit fba38ed023

View File

@ -8,10 +8,6 @@ import {CustomColumn} from '../components/CustomColumn'
import {UserOfWells} from '../components/UserOfWells'
import {ModeDisplay} from '../components/ModeDisplay'
import {Display} from '../components/Display'
import SpinPicEnabled from "../images/SpinEnabled.png"
import SpinPicDisabled from "../images/SpinDisabled.png"
import MomentStabPicEnabled from "../images/DempherOn.png"
import MomentStabPicDisabled from "../images/DempherOff.png"
import moment from 'moment'
import {Subscribe} from '../services/signalr'
import {DataService, MessageService} from '../services/api'
@ -34,8 +30,6 @@ const blockSpeedGroup = {
yDisplay: false,
linePv: {label: "blockSpeed", units: 'м/ч', xAccessorName: "blockSpeed", yAccessorName: "date", color: '#0a0'},
lineSp: {label: "blockSpeedSp", units: 'м/ч', xAccessorName: "blockSpeedSp", yAccessorName: "date", color: '#0a0'},
lineAvg: {label: "blockSpeedAvg", units: 'м/ч', xAccessorName: "blockSpeed", yAccessorName: "date", color: '#38C3FF', calc:(v) => 14, dash},
lineMax: {label: "blockSpeedMax", units: 'м/ч', xAccessorName: "blockSpeed", yAccessorName: "date", color: '#38C3FF', calc:(v) => 23, dash},
}
const pressureGroup = {
@ -279,9 +273,6 @@ export default function TelemetryView(props) {
</Select>
</Col>
<span style={{flexGrow: 1}}>&nbsp;</span>
<img src={saubData[saubData.length - 1]?.isMomentStabEnabled ? MomentStabPicEnabled : MomentStabPicDisabled} style={{marginRight: "15px"}}/>
<img src={saubData[saubData.length - 1]?.isSpinEnabled ? SpinPicEnabled : SpinPicDisabled} style={{marginRight: "15px"}}/>
<h2 style={{marginBottom: 0, marginRight: "15px",fontWeight: "bold", color: saubData[saubData.length - 1]?.mseEnabled == 24968 ? "green" : "lightgrey"}}>MSE</h2>
<Col>
<UserOfWells data={saubData}/>
</Col>