2021-05-25 12:02:39 +05:00
|
|
|
import {Layout, Menu} from "antd";
|
|
|
|
import {FolderOutlined, FundViewOutlined} from "@ant-design/icons";
|
|
|
|
import {Link, Redirect, Route, Switch, useParams} from "react-router-dom";
|
|
|
|
import Files from "../pages/Files";
|
|
|
|
import Archive from "../pages/Archive";
|
|
|
|
import Messages from "../pages/Messages";
|
|
|
|
import Report from "../pages/Report";
|
|
|
|
import Analysis from "../pages/Analysis";
|
2021-07-21 16:53:33 +05:00
|
|
|
import WellAnalysis from "../pages/WellAnalysis";
|
2021-05-25 12:02:39 +05:00
|
|
|
import TelemetryView from "../pages/TelemetryView";
|
2021-07-28 13:53:58 +05:00
|
|
|
import MenuDocuments from "../components/MenuDocuments";
|
2021-04-16 15:50:01 +05:00
|
|
|
|
2021-05-25 12:02:39 +05:00
|
|
|
const { Content } = Layout
|
2021-04-16 15:50:01 +05:00
|
|
|
|
2021-05-25 12:02:39 +05:00
|
|
|
export default function Well() {
|
|
|
|
let { id } = useParams()
|
2021-07-28 14:27:14 +05:00
|
|
|
const rootPath = `/well/${id}`
|
2021-05-25 12:02:39 +05:00
|
|
|
|
2021-07-22 14:53:30 +05:00
|
|
|
const {SubMenu} = Menu
|
|
|
|
|
2021-05-25 12:02:39 +05:00
|
|
|
return (<>
|
|
|
|
<Layout>
|
|
|
|
<Menu
|
|
|
|
mode="horizontal"
|
2021-06-01 14:32:36 +05:00
|
|
|
selectable={true}
|
2021-05-27 12:53:42 +05:00
|
|
|
className="well_menu"
|
2021-05-25 12:02:39 +05:00
|
|
|
>
|
|
|
|
<Menu.Item key="1" icon={<FundViewOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/telemetry`}}>Мониторинг</Link>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="2" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/message`}}>Сообщения</Link>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="3" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/report`}}>Рапорт</Link>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="4" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/analysis`}}>Анализ</Link>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="5" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/wellAnalysis`}}>Операции по скважине</Link>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="6" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/file`}}>Файлы</Link>
|
2021-07-21 16:53:33 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="7" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/archive`}}>Архив</Link>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Menu.Item>
|
2021-07-22 14:53:30 +05:00
|
|
|
<SubMenu
|
|
|
|
key="documentsSub"
|
2021-07-28 13:53:58 +05:00
|
|
|
title={<span className="linkDocuments">Документы</span>}
|
2021-07-22 14:53:30 +05:00
|
|
|
icon={<FolderOutlined/>}
|
|
|
|
selectable={true}
|
|
|
|
>
|
|
|
|
<Menu.Item key="documentsSub1" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/documents/fluidService`}}>Растворный сервис</Link>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="documentsSub1.1" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/documents/cementing`}}>Цементирование</Link>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="documentsSub1.2" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/documents/nnb`}}>ННБ</Link>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="documentsSub1.3" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/documents/gti`}}>ГТИ</Link>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="documentsSub1.4" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/documents/documentsForWell`}}>Документы по скважине</Link>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="documentsSub1.5" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/documents/supervisor`}}>Супервайзер</Link>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="documentsSub1.6" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/documents/master`}}>Мастер</Link>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="documentsSub1.7" icon={<FolderOutlined/>}>
|
2021-07-28 14:27:14 +05:00
|
|
|
<Link to={{pathname: `${rootPath}/documents/lastData`}}>Последние данные</Link>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Menu.Item>
|
|
|
|
</SubMenu>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Menu>
|
|
|
|
|
|
|
|
<Layout>
|
2021-05-27 13:46:46 +05:00
|
|
|
<Content className="site-layout-background">
|
2021-05-25 12:02:39 +05:00
|
|
|
<Switch>
|
|
|
|
<Route path="/well/:id/file">
|
|
|
|
<Files/>
|
|
|
|
</Route>
|
|
|
|
<Route path="/well/:id/archive">
|
|
|
|
<Archive/>
|
|
|
|
</Route>
|
|
|
|
<Route path="/well/:id/message">
|
|
|
|
<Messages/>
|
|
|
|
</Route>
|
|
|
|
<Route path="/well/:id/report">
|
|
|
|
<Report/>
|
|
|
|
</Route>
|
|
|
|
<Route path="/well/:id/analysis">
|
|
|
|
<Analysis/>
|
|
|
|
</Route>
|
2021-07-21 16:53:33 +05:00
|
|
|
<Route path="/well/:id/wellAnalysis">
|
|
|
|
<WellAnalysis/>
|
|
|
|
</Route>
|
2021-05-25 12:02:39 +05:00
|
|
|
<Route path="/well/:id/telemetry">
|
|
|
|
<TelemetryView/>
|
|
|
|
</Route>
|
2021-07-22 14:53:30 +05:00
|
|
|
<Route path="/well/:id/documents">
|
2021-07-28 13:53:58 +05:00
|
|
|
<MenuDocuments/>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Route>
|
2021-05-25 12:02:39 +05:00
|
|
|
<Route path="/">
|
2021-07-28 14:27:14 +05:00
|
|
|
<Redirect to={{pathname: `${rootPath}/telemetry`}}/>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Route>
|
|
|
|
</Switch>
|
|
|
|
</Content>
|
|
|
|
</Layout>
|
|
|
|
</Layout>
|
|
|
|
</>)
|
|
|
|
}
|