diff --git a/src/components/CementFluid.jsx b/src/components/CementFluid.jsx
deleted file mode 100644
index e69de29..0000000
diff --git a/src/components/Disposition.jsx b/src/components/Disposition.jsx
deleted file mode 100644
index b40e30b..0000000
--- a/src/components/Disposition.jsx
+++ /dev/null
@@ -1,19 +0,0 @@
-let date = new Date().toLocaleString()
-
-
-export default function Disposition() {
- return (
- <>
-
diff --git a/src/pages/FluidService.jsx b/src/pages/FluidService.jsx
index 2022289..d75e422 100644
--- a/src/pages/FluidService.jsx
+++ b/src/pages/FluidService.jsx
@@ -1,4 +1,4 @@
-import Documents from "../components/Documents"
+import Documents from "./Documents"
export default function FluidService({selectedFileCategory}) {
diff --git a/src/pages/LastData.jsx b/src/pages/LastData.jsx
index ded281b..1d8549c 100644
--- a/src/pages/LastData.jsx
+++ b/src/pages/LastData.jsx
@@ -1,18 +1,14 @@
-import {Button, Modal, Checkbox } from "antd";
+import {Button, Modal } from "antd";
import {DrillingFluid} from "../components/modalWindows/DrillingFluid";
import {useState} from "react";
import {SludgeDiagram} from "../components/modalWindows/MudDiagram";
import {Nnb} from "../components/modalWindows/Nnb"
-import Disposition from "../components/Disposition";
-
-export default function LastData() {
+export default function LastData(/*{idWell}*/) {
const [tableVisible, setCementTableVisible] = useState(false)
const [tableSludgeVisible, setTableSludgeVisible] = useState(false)
const [tableNNBVisible, setTableNNBVisible] = useState(false)
- const [dispositionVisible, setDispositionVisible] = useState(false)
- //const [loader, setLoader] = useState(false)
return (
<>
@@ -68,31 +64,5 @@ export default function LastData() {
>
-
-
setDispositionVisible(false)}
- onCancel={() => setDispositionVisible(false)}
- width={850}
- okText='Ок'
- cancelText='Отмена'
- footer={[
- Принять распоряжение,
- ,
-
- ]}
- >
-
-
>)
}
\ No newline at end of file
diff --git a/src/pages/Main.jsx b/src/pages/Main.jsx
index 4fbbac8..970bf77 100644
--- a/src/pages/Main.jsx
+++ b/src/pages/Main.jsx
@@ -8,7 +8,7 @@ export default function Main() {
return (
-
+
diff --git a/src/components/MenuDocuments.jsx b/src/pages/MenuDocuments.jsx
similarity index 92%
rename from src/components/MenuDocuments.jsx
rename to src/pages/MenuDocuments.jsx
index 9c0d825..12380f3 100644
--- a/src/components/MenuDocuments.jsx
+++ b/src/pages/MenuDocuments.jsx
@@ -1,17 +1,16 @@
+import { useState, useEffect } from "react";
import {Layout, Menu} from "antd";
import {FolderOutlined} from "@ant-design/icons";
-import {Link, Route, Switch, useParams, useLocation} from "react-router-dom";
-import Documents from "../components/Documents";
-import LastData from '../pages/LastData'
-import { useState, useEffect } from "react";
+import {Link, Route, Switch, useLocation} from "react-router-dom";
+import Documents from "./Documents";
+import LastData from './LastData'
const { Content } = Layout
-export default function MenuDocuments() {
- let { id } = useParams()
+export default function MenuDocuments({idWell}) {
let currentPath = useLocation().pathname
- const rootPath = `/well/${id}`
+ const rootPath = `/well/${idWell}`
const [selectedElement, setSelectedElement] = useState('fluidService')
diff --git a/src/pages/Smbo/EquipmentDetails.jsx b/src/pages/Smbo/EquipmentDetails.jsx
index 12a50fa..15421a3 100644
--- a/src/pages/Smbo/EquipmentDetails.jsx
+++ b/src/pages/Smbo/EquipmentDetails.jsx
@@ -1,5 +1,5 @@
import {Row, Col} from 'antd'
-import Documents from '../../components/Documents'
+import Documents from '../Documents'
import '../../styles/equipment_details.css'
export default function EquipmentDetails({id, equipmentTimers, equipmentSensors}) {
diff --git a/src/pages/TelemetryView/index.jsx b/src/pages/TelemetryView/index.jsx
index 740fb84..5b6b112 100644
--- a/src/pages/TelemetryView/index.jsx
+++ b/src/pages/TelemetryView/index.jsx
@@ -138,7 +138,6 @@ const defaultChartInterval = '600'
export default function TelemetryView({idWell}) {
const [saubData, setSaubData] = useState([])
const [chartInterval, setChartInterval] = useState(defaultChartInterval)
-
const [loader, setLoader] = useState(false)
const options = timePeriodCollection.map((line) => )
diff --git a/src/pages/Well.jsx b/src/pages/Well.jsx
index b773354..d74f0be 100644
--- a/src/pages/Well.jsx
+++ b/src/pages/Well.jsx
@@ -1,20 +1,20 @@
import {Layout, Menu} from "antd";
import {FolderOutlined, FundViewOutlined} from "@ant-design/icons";
import {Link, Redirect, Route, Switch, useParams} from "react-router-dom";
-import Archive from "../pages/Archive";
+import TelemetryView from "./TelemetryView";
import Messages from "../pages/Messages";
import Report from "../pages/Report";
+import Archive from "../pages/Archive";
import Analysis from "../pages/Analysis";
import WellAnalysis from "../pages/WellAnalysis";
-import TelemetryView from "./TelemetryView";
-import MenuDocuments from "../components/MenuDocuments";
+import MenuDocuments from "./MenuDocuments";
import WellStat from "./WellStat"
import Smbo from "./Smbo"
const { Content } = Layout
export default function Well() {
- let { id: idWell } = useParams()
+ let { idWell } = useParams()
const rootPath = `/well/${idWell}`
const {SubMenu} = Menu
@@ -86,11 +86,8 @@ export default function Well() {
-
-
-
-
-
+
+
@@ -101,11 +98,14 @@ export default function Well() {
+
+
+
-
-
+
+