forked from ddrilling/asb_cloud_front
Аналитика перенесена к вкладкам скважины
This commit is contained in:
parent
0a018315bb
commit
e141683553
@ -6,6 +6,7 @@ import {
|
|||||||
FilePdfOutlined,
|
FilePdfOutlined,
|
||||||
DatabaseOutlined,
|
DatabaseOutlined,
|
||||||
ExperimentOutlined,
|
ExperimentOutlined,
|
||||||
|
DeploymentUnitOutlined,
|
||||||
} from '@ant-design/icons'
|
} from '@ant-design/icons'
|
||||||
import { Layout, Menu } from 'antd'
|
import { Layout, Menu } from 'antd'
|
||||||
import { Switch, useParams } from 'react-router-dom'
|
import { Switch, useParams } from 'react-router-dom'
|
||||||
@ -21,6 +22,7 @@ import TelemetryView from './TelemetryView'
|
|||||||
import WellOperations from './WellOperations'
|
import WellOperations from './WellOperations'
|
||||||
import DrillingProgram from './DrillingProgram'
|
import DrillingProgram from './DrillingProgram'
|
||||||
import TelemetryAnalysis from './TelemetryAnalysis'
|
import TelemetryAnalysis from './TelemetryAnalysis'
|
||||||
|
import WellCompositeEditor from './WellCompositeEditor'
|
||||||
|
|
||||||
const { Content } = Layout
|
const { Content } = Layout
|
||||||
|
|
||||||
@ -34,6 +36,7 @@ export const Well = memo(() => {
|
|||||||
<PrivateMenuItem.Link root={rootPath} key={'telemetry'} path={'telemetry'} icon={<FundViewOutlined />} title={'Мониторинг'}/>
|
<PrivateMenuItem.Link root={rootPath} key={'telemetry'} path={'telemetry'} icon={<FundViewOutlined />} title={'Мониторинг'}/>
|
||||||
<PrivateMenuItem.Link root={rootPath} key={'message'} path={'message'} icon={<AlertOutlined/>} title={'Сообщения'} />
|
<PrivateMenuItem.Link root={rootPath} key={'message'} path={'message'} icon={<AlertOutlined/>} title={'Сообщения'} />
|
||||||
<PrivateMenuItem.Link root={rootPath} key={'report'} path={'report'} icon={<FilePdfOutlined />} title={'Рапорт'} />
|
<PrivateMenuItem.Link root={rootPath} key={'report'} path={'report'} icon={<FilePdfOutlined />} title={'Рапорт'} />
|
||||||
|
<PrivateMenuItem.Link root={rootPath} key={'composite'} path={'composite'} icon={<DeploymentUnitOutlined />} title={'Аналитика'} />
|
||||||
<PrivateMenuItem.Link root={rootPath} key={'operations'} path={'operations'} icon={<FolderOutlined />} title={'Операции по скважине'} />
|
<PrivateMenuItem.Link root={rootPath} key={'operations'} path={'operations'} icon={<FolderOutlined />} title={'Операции по скважине'} />
|
||||||
<PrivateMenuItem.Link root={rootPath} key={'archive'} path={'archive'} icon={<DatabaseOutlined />} title={'Архив'} />
|
<PrivateMenuItem.Link root={rootPath} key={'archive'} path={'archive'} icon={<DatabaseOutlined />} title={'Архив'} />
|
||||||
{/* <PrivateMenuItem.Link root={rootPath} key={'telemetryAnalysis'} path={'telemetryAnalysis'} icon={<FundProjectionScreenOutlined />} title={'Операции по телеметрии'} /> */}
|
{/* <PrivateMenuItem.Link root={rootPath} key={'telemetryAnalysis'} path={'telemetryAnalysis'} icon={<FundProjectionScreenOutlined />} title={'Операции по телеметрии'} /> */}
|
||||||
@ -54,6 +57,9 @@ export const Well = memo(() => {
|
|||||||
<PrivateRoute path={`${rootPath}/report`}>
|
<PrivateRoute path={`${rootPath}/report`}>
|
||||||
<Report idWell={idWell} />
|
<Report idWell={idWell} />
|
||||||
</PrivateRoute>
|
</PrivateRoute>
|
||||||
|
<PrivateRoute path={`${rootPath}/composite/:tab?`}>
|
||||||
|
<WellCompositeEditor idWell={idWell} rootPath={`${rootPath}/composite`}/>
|
||||||
|
</PrivateRoute>
|
||||||
<PrivateRoute path={`${rootPath}/operations/:tab?`}>
|
<PrivateRoute path={`${rootPath}/operations/:tab?`}>
|
||||||
<WellOperations idWell={idWell} />
|
<WellOperations idWell={idWell} />
|
||||||
</PrivateRoute>
|
</PrivateRoute>
|
||||||
@ -76,6 +82,7 @@ export const Well = memo(() => {
|
|||||||
`${rootPath}/telemetry`,
|
`${rootPath}/telemetry`,
|
||||||
`${rootPath}/message`,
|
`${rootPath}/message`,
|
||||||
`${rootPath}/report`,
|
`${rootPath}/report`,
|
||||||
|
`${rootPath}/composite`,
|
||||||
`${rootPath}/operations`,
|
`${rootPath}/operations`,
|
||||||
`${rootPath}/archive`,
|
`${rootPath}/archive`,
|
||||||
`${rootPath}/telemetryAnalysis`,
|
`${rootPath}/telemetryAnalysis`,
|
||||||
|
@ -9,15 +9,15 @@ import { invokeWebApiWrapperAsync } from '@components/factory'
|
|||||||
import { makeTextColumn, makeNumericColumnPlanFact } from '@components/Table'
|
import { makeTextColumn, makeNumericColumnPlanFact } from '@components/Table'
|
||||||
import { DrillParamsService, WellCompositeService } from '@api'
|
import { DrillParamsService, WellCompositeService } from '@api'
|
||||||
import { hasPermission } from '@utils/permissions'
|
import { hasPermission } from '@utils/permissions'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
calcAndUpdateStatsBySections,
|
calcAndUpdateStatsBySections,
|
||||||
makeFilterMinMaxFunction,
|
makeFilterMinMaxFunction,
|
||||||
getOperations
|
getOperations
|
||||||
} from '@utils/functions'
|
} from '@utils/functions'
|
||||||
|
|
||||||
|
import { Tvd } from '@pages/WellOperations/Tvd'
|
||||||
|
import { getColumns } from '@pages/WellOperations/WellDrillParams'
|
||||||
import WellOperationsTable from '@pages/Cluster/WellOperationsTable'
|
import WellOperationsTable from '@pages/Cluster/WellOperationsTable'
|
||||||
import { Tvd } from '../Tvd'
|
|
||||||
import { getColumns } from '../WellDrillParams'
|
|
||||||
|
|
||||||
|
|
||||||
const filtersMinMax = [
|
const filtersMinMax = [
|
@ -18,8 +18,7 @@ import { WellCompositeSections } from './WellCompositeSections'
|
|||||||
|
|
||||||
const { Content } = Layout
|
const { Content } = Layout
|
||||||
|
|
||||||
export const WellCompositeEditor = memo(({ idWell }) => {
|
export const WellCompositeEditor = memo(({ idWell, rootPath }) => {
|
||||||
const rootPath = `/well/${idWell}/operations/composite`
|
|
||||||
const { tab } = useParams()
|
const { tab } = useParams()
|
||||||
|
|
||||||
const [wellsTree, setWellsTree] = useState([])
|
const [wellsTree, setWellsTree] = useState([])
|
@ -5,7 +5,6 @@ import {
|
|||||||
BarChartOutlined,
|
BarChartOutlined,
|
||||||
BuildOutlined,
|
BuildOutlined,
|
||||||
ControlOutlined,
|
ControlOutlined,
|
||||||
DeploymentUnitOutlined,
|
|
||||||
LineChartOutlined,
|
LineChartOutlined,
|
||||||
TableOutlined,
|
TableOutlined,
|
||||||
} from '@ant-design/icons'
|
} from '@ant-design/icons'
|
||||||
@ -17,7 +16,6 @@ import { ImportExportBar } from './ImportExportBar'
|
|||||||
import { WellDrillParams } from './WellDrillParams'
|
import { WellDrillParams } from './WellDrillParams'
|
||||||
import { DrillProcessFlow } from './DrillProcessFlow'
|
import { DrillProcessFlow } from './DrillProcessFlow'
|
||||||
import { WellSectionsStat } from './WellSectionsStat'
|
import { WellSectionsStat } from './WellSectionsStat'
|
||||||
import { WellCompositeEditor } from './WellCompositeEditor'
|
|
||||||
import { WellOperationsEditor } from './WellOperationsEditor'
|
import { WellOperationsEditor } from './WellOperationsEditor'
|
||||||
|
|
||||||
const { Content } = Layout
|
const { Content } = Layout
|
||||||
@ -40,7 +38,6 @@ export const WellOperations = memo(({ idWell }) => {
|
|||||||
<PrivateMenuItemLink root={rootPath} icon={<TableOutlined />} key={'fact'} path={'fact'} title={'Факт'} />
|
<PrivateMenuItemLink root={rootPath} icon={<TableOutlined />} key={'fact'} path={'fact'} title={'Факт'} />
|
||||||
<PrivateMenuItemLink root={rootPath} icon={<BarChartOutlined />} key={'drillProcessFlow'} path={'drillProcessFlow'} title={'РТК'} />
|
<PrivateMenuItemLink root={rootPath} icon={<BarChartOutlined />} key={'drillProcessFlow'} path={'drillProcessFlow'} title={'РТК'} />
|
||||||
<PrivateMenuItemLink root={rootPath} icon={<ControlOutlined />} key={'params'} path={'params'} title={'Режимы'} />
|
<PrivateMenuItemLink root={rootPath} icon={<ControlOutlined />} key={'params'} path={'params'} title={'Режимы'} />
|
||||||
<PrivateMenuItemLink root={rootPath} icon={<DeploymentUnitOutlined />} key={'composite'} path={'composite'} title={'Аналитика'} />
|
|
||||||
<ImportExportBar idWell={idWell} disabled={isIEBarDisabled} onImported={onImported}/>
|
<ImportExportBar idWell={idWell} disabled={isIEBarDisabled} onImported={onImported}/>
|
||||||
</Menu>
|
</Menu>
|
||||||
<Layout>
|
<Layout>
|
||||||
@ -64,17 +61,13 @@ export const WellOperations = memo(({ idWell }) => {
|
|||||||
<PrivateRoute path={`${rootPath}/params`}>
|
<PrivateRoute path={`${rootPath}/params`}>
|
||||||
<WellDrillParams idWell={idWell}/>
|
<WellDrillParams idWell={idWell}/>
|
||||||
</PrivateRoute>
|
</PrivateRoute>
|
||||||
<PrivateRoute path={`${rootPath}/composite/:tab?`}>
|
|
||||||
<WellCompositeEditor idWell={idWell}/>
|
|
||||||
</PrivateRoute>
|
|
||||||
<PrivateDefaultRoute urls={[
|
<PrivateDefaultRoute urls={[
|
||||||
`${rootPath}/plan`,
|
`${rootPath}/plan`,
|
||||||
`${rootPath}/fact`,
|
`${rootPath}/fact`,
|
||||||
`${rootPath}/tvd`,
|
`${rootPath}/tvd`,
|
||||||
`${rootPath}/sections`,
|
`${rootPath}/sections`,
|
||||||
`${rootPath}/drillProcessFlow`,
|
`${rootPath}/drillProcessFlow`,
|
||||||
`${rootPath}/params`,
|
`${rootPath}/params`
|
||||||
`${rootPath}/composite`
|
|
||||||
]}/>
|
]}/>
|
||||||
</Switch>
|
</Switch>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -93,6 +93,10 @@ export const requirements: PermissionRecord = {
|
|||||||
telemetry: ['Deposit.get', 'DrillFlowChart.get', 'TelemetryDataSaub.get', 'TelemetryDataSpin.get'],
|
telemetry: ['Deposit.get', 'DrillFlowChart.get', 'TelemetryDataSaub.get', 'TelemetryDataSpin.get'],
|
||||||
message: ['Deposit.get', 'TelemetryDataSaub.get'],
|
message: ['Deposit.get', 'TelemetryDataSaub.get'],
|
||||||
report: ['Deposit.get', 'Report.get'],
|
report: ['Deposit.get', 'Report.get'],
|
||||||
|
composite: {
|
||||||
|
wells: ['Deposit.get', 'OperationStat.get', 'WellComposite.get'],
|
||||||
|
sections: ['Deposit.get', 'OperationStat.get', 'WellComposite.get', 'DrillParams.get'],
|
||||||
|
},
|
||||||
operations: {
|
operations: {
|
||||||
tvd: ['Deposit.get', 'OperationStat.get'],
|
tvd: ['Deposit.get', 'OperationStat.get'],
|
||||||
sections: ['Deposit.get', 'OperationStat.get'],
|
sections: ['Deposit.get', 'OperationStat.get'],
|
||||||
@ -100,10 +104,6 @@ export const requirements: PermissionRecord = {
|
|||||||
fact: ['Deposit.get', 'WellOperation.get'],
|
fact: ['Deposit.get', 'WellOperation.get'],
|
||||||
drillProcessFlow: ['Deposit.get', 'DrillFlowChart.get'],
|
drillProcessFlow: ['Deposit.get', 'DrillFlowChart.get'],
|
||||||
params: ['Deposit.get', 'WellOperation.get', 'DrillParams.get'],
|
params: ['Deposit.get', 'WellOperation.get', 'DrillParams.get'],
|
||||||
composite: {
|
|
||||||
wells: ['Deposit.get', 'OperationStat.get', 'WellComposite.get'],
|
|
||||||
sections: ['Deposit.get', 'OperationStat.get', 'WellComposite.get', 'DrillParams.get'],
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
telemetryAnalysis: {
|
telemetryAnalysis: {
|
||||||
depthToDay: ['Deposit.get', 'TelemetryAnalytics.get'],
|
depthToDay: ['Deposit.get', 'TelemetryAnalytics.get'],
|
||||||
|
Loading…
Reference in New Issue
Block a user