forked from ddrilling/asb_cloud_front
Убрал всё лишнее
This commit is contained in:
parent
da283f1818
commit
fa45a27a4c
@ -7,7 +7,6 @@ import Messages from "../pages/Messages";
|
|||||||
import Report from "../pages/Report";
|
import Report from "../pages/Report";
|
||||||
import Analysis from "../pages/Analysis";
|
import Analysis from "../pages/Analysis";
|
||||||
import TelemetryView from "../pages/TelemetryView";
|
import TelemetryView from "../pages/TelemetryView";
|
||||||
import Wells from "../pages/Wells";
|
|
||||||
|
|
||||||
const { Content } = Layout
|
const { Content } = Layout
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { Layout, } from 'antd'
|
import { Layout, } from 'antd'
|
||||||
import Wells from './Wells'
|
import Wells from './Wells'
|
||||||
import PageHeader from './Header'
|
import PageHeader from './Header'
|
||||||
import TelemetryView from "./TelemetryView";
|
|
||||||
import Well from "../components/Well";
|
import Well from "../components/Well";
|
||||||
import {Redirect, Route, Switch} from "react-router-dom";
|
import {Redirect, Route, Switch} from "react-router-dom";
|
||||||
|
|
||||||
|
@ -53,12 +53,6 @@ export default function Messages(props) {
|
|||||||
const [messages, setMessages] = useState([])
|
const [messages, setMessages] = useState([])
|
||||||
const [loader] = useState(false)
|
const [loader] = useState(false)
|
||||||
|
|
||||||
// const handleMessages = (messages) => {
|
|
||||||
// if (messages) {
|
|
||||||
// messages.map(m => { return { key: m.id, ...m } })
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
const handleReceiveMessages = (messages) => {
|
const handleReceiveMessages = (messages) => {
|
||||||
if (messages) {
|
if (messages) {
|
||||||
setMessages(messages.items)
|
setMessages(messages.items)
|
||||||
@ -75,21 +69,6 @@ export default function Messages(props) {
|
|||||||
}
|
}
|
||||||
}, [id]);
|
}, [id]);
|
||||||
|
|
||||||
// let updateMessagesTable = async () => {
|
|
||||||
// setLoader(true)
|
|
||||||
// try {
|
|
||||||
// let newMessages = await MessageService.getMessage(1, 0, 32, [], '2020-01-01T00:00:00', '2025-01-01T00:00:00')
|
|
||||||
// setMessages(newMessages.items)
|
|
||||||
// } catch (e) {
|
|
||||||
// console.error(`${e.message}`);
|
|
||||||
// }
|
|
||||||
// setLoader(false)
|
|
||||||
// }
|
|
||||||
|
|
||||||
// useEffect(() => {
|
|
||||||
// updateMessagesTable()
|
|
||||||
// }, [])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h2>Сообщения</h2>
|
<h2>Сообщения</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user