Add WellStat, rename ClusterStat

This commit is contained in:
Фролов 2021-07-28 17:44:44 +05:00
parent 325462dcc9
commit 5967cbdd1d
4 changed files with 11 additions and 13 deletions

View File

@ -32,7 +32,7 @@
"react_test": "react-scripts test",
"eject": "react-scripts eject"
},
"proxy": "http://192.168.1.70:5000",
"proxy": "http://127.0.0.1:5000",
"eslintConfig": {
"extends": [
"react-app",

View File

@ -1,7 +0,0 @@
export default function Files(props) {
return (
<div className="menu-title">
<h2>Файлы</h2>
</div>
)
}

View File

@ -1,14 +1,13 @@
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";
import WellAnalysis from "../pages/WellAnalysis";
import TelemetryView from "../pages/TelemetryView";
import MenuDocuments from "../components/MenuDocuments";
import WellStat from "./WellStat";
const { Content } = Layout
@ -41,7 +40,7 @@ export default function Well() {
<Link to={{pathname: `${rootPath}/wellAnalysis`}}>Операции по скважине</Link>
</Menu.Item>
<Menu.Item key="6" icon={<FolderOutlined/>}>
<Link to={{pathname: `${rootPath}/file`}}>Файлы</Link>
<Link to='stat'>Статистика</Link>
</Menu.Item>
<Menu.Item key="7" icon={<FolderOutlined/>}>
<Link to={{pathname: `${rootPath}/archive`}}>Архив</Link>
@ -82,8 +81,8 @@ export default function Well() {
<Layout>
<Content className="site-layout-background">
<Switch>
<Route path="/well/:id/file">
<Files/>
<Route path="/well/:id/stat">
<WellStat/>
</Route>
<Route path="/well/:id/archive">
<Archive/>

View File

@ -3,4 +3,10 @@
/* eslint-disable */
export type WellOperationDto = {
id?: number;
idWell?: number;
caption?: string | null;
description?: string | null;
casingSection?: number;
wellDepth?: number;
}