Reamed 'Analysis' components to 'Telemetry Analysis'

This commit is contained in:
KharchenkoVV 2021-08-27 11:49:32 +05:00
parent a4cd429737
commit f39e550ac7
3 changed files with 11 additions and 11 deletions

View File

@ -1,9 +1,9 @@
import { AnalysisDepthToDay } from '../src/components/AnalysisDepthToDay' import { TelemetryAnalysisDepthToDay } from '../src/components/TelemetryAnalysisDepthToDay'
import { AnalysisDepthToInterval } from '../src/components/AnalysisDepthToInterval' import { TelemetryAnalysisDepthToInterval } from '../src/components/TelemetryAnalysisDepthToInterval'
import { AnalysisOperationTime } from '../src/components/AnalysisOperationTime' import { AnalysisOperationTime } from '../src/components/AnalysisOperationTime'
import { Row, Col } from 'antd' import { Row, Col } from 'antd'
export default function Analysis({idWell}) { export default function TelemetryAnalysis({idWell}) {
return ( return (
<> <>
@ -11,11 +11,11 @@ export default function Analysis({idWell}) {
<Row justify="space-around" align="middle"> <Row justify="space-around" align="middle">
<Col span={10}> <Col span={10}>
<h2>График Глубина-день</h2> <h2>График Глубина-день</h2>
<AnalysisDepthToDay idWell={idWell}/> <TelemetryAnalysisDepthToDay idWell={idWell}/>
</Col> </Col>
<Col span={10}> <Col span={10}>
<h2>График Глубина за интервал</h2> <h2>График Глубина за интервал</h2>
<AnalysisDepthToInterval idWell={idWell}/> <TelemetryAnalysisDepthToInterval idWell={idWell}/>
</Col> </Col>
</Row > </Row >
<Row><div style={{height: "150px"}}>&nbsp;</div></Row> <Row><div style={{height: "150px"}}>&nbsp;</div></Row>

View File

@ -1,15 +1,15 @@
import { ChartDepthToDay } from './charts/ChartDepthToDay' import { ChartDepthToDay } from './charts/ChartDepthToDay'
import { notify } from "../components/factory" import { notify } from "./factory"
import { useState, useEffect } from 'react' import { useState, useEffect } from 'react'
import { TelemetryAnalyticsService } from "../services/api" import { TelemetryAnalyticsService } from "../services/api"
import LoaderPortal from '../components/LoaderPortal' import LoaderPortal from './LoaderPortal'
const lines = [ const lines = [
{ label: "Глубина забоя", yAccessorName: "wellDepth", color: '#f00' }, { label: "Глубина забоя", yAccessorName: "wellDepth", color: '#f00' },
{ label: "Положение инструмента", yAccessorName: "bitDepth", color: '#ff0' } { label: "Положение инструмента", yAccessorName: "bitDepth", color: '#ff0' }
] ]
export function AnalysisDepthToDay({idWell}) { export function TelemetryAnalysisDepthToDay({idWell}) {
const [depthToDayData, setDepthToDayData] = useState([]) const [depthToDayData, setDepthToDayData] = useState([])
const [loader, setLoader] = useState(false) const [loader, setLoader] = useState(false)

View File

@ -1,10 +1,10 @@
import { useParams } from "react-router-dom" import { useParams } from "react-router-dom"
import { notify } from "../components/factory" import { notify } from "./factory"
import { useState, useEffect } from 'react' import { useState, useEffect } from 'react'
import { TelemetryAnalyticsService } from '../services/api' import { TelemetryAnalyticsService } from '../services/api'
import { ChartDepthToInterval } from './charts/ChartDepthToInterval' import { ChartDepthToInterval } from './charts/ChartDepthToInterval'
import { Select } from 'antd' import { Select } from 'antd'
import LoaderPortal from '../components/LoaderPortal' import LoaderPortal from './LoaderPortal'
const { Option } = Select const { Option } = Select
@ -21,7 +21,7 @@ const timePeriodCollection = [
const lines = [{ label: 'График скорость проходки-интервал', yAccessorName: "intervalDepthProgress", xAccessorName: "intervalStartDate", color: '#00f' }] const lines = [{ label: 'График скорость проходки-интервал', yAccessorName: "intervalDepthProgress", xAccessorName: "intervalStartDate", color: '#00f' }]
export function AnalysisDepthToInterval() { export function TelemetryAnalysisDepthToInterval() {
let { id } = useParams() let { id } = useParams()
const [depthToIntervalData, setDepthToIntervalData] = useState([]) const [depthToIntervalData, setDepthToIntervalData] = useState([])
const [loader, setLoader] = useState(false) const [loader, setLoader] = useState(false)