2021-07-22 14:53:30 +05:00
|
|
|
import {Button, Modal, Checkbox } from "antd";
|
2021-08-03 17:47:46 +05:00
|
|
|
import {DrillingFluid} from "../components/modalWindows/DrillingFluid";
|
2021-08-11 17:39:27 +05:00
|
|
|
import {useState} from "react";
|
2021-08-03 17:47:46 +05:00
|
|
|
import {SludgeDiagram} from "../components/modalWindows/MudDiagram";
|
|
|
|
import {Nnb} from "../components/modalWindows/Nnb"
|
2021-07-22 14:53:30 +05:00
|
|
|
import Disposition from "../components/Disposition";
|
|
|
|
|
|
|
|
|
|
|
|
export default function LastData() {
|
2021-08-02 18:30:47 +05:00
|
|
|
|
2021-07-28 17:59:16 +05:00
|
|
|
const [tableVisible, setCementTableVisible] = useState(false)
|
2021-07-22 14:53:30 +05:00
|
|
|
const [tableSludgeVisible, setTableSludgeVisible] = useState(false)
|
|
|
|
const [tableNNBVisible, setTableNNBVisible] = useState(false)
|
|
|
|
const [dispositionVisible, setDispositionVisible] = useState(false)
|
2021-08-11 17:39:27 +05:00
|
|
|
//const [loader, setLoader] = useState(false)
|
2021-07-22 14:53:30 +05:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<div> </div>
|
2021-07-28 17:59:16 +05:00
|
|
|
<Button type="primary" onClick={() => setCementTableVisible(true)}>
|
2021-07-22 14:53:30 +05:00
|
|
|
Последний замер бурового раствора
|
|
|
|
</Button>
|
|
|
|
<Modal
|
|
|
|
title='Последние показатели бурового раствора'
|
|
|
|
centered
|
|
|
|
visible={tableVisible}
|
2021-07-28 17:59:16 +05:00
|
|
|
onCancel={() => setCementTableVisible(false)}
|
|
|
|
width={2000}
|
2021-07-29 17:17:28 +05:00
|
|
|
footer={[
|
|
|
|
<Button key="back" onClick={() => setCementTableVisible(false)}>
|
|
|
|
Закрыть
|
|
|
|
</Button>
|
|
|
|
]}
|
2021-07-22 14:53:30 +05:00
|
|
|
>
|
2021-07-30 12:26:52 +05:00
|
|
|
<DrillingFluid/>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Modal>
|
|
|
|
<Button type="primary" onClick={() => setTableSludgeVisible(true)} style={{marginLeft: "5px"}}>
|
|
|
|
Шламограмма
|
|
|
|
</Button>
|
|
|
|
<Modal
|
|
|
|
title='Шламограмма'
|
|
|
|
centered
|
|
|
|
visible={tableSludgeVisible}
|
|
|
|
onCancel={() => setTableSludgeVisible(false)}
|
2021-07-28 17:59:16 +05:00
|
|
|
width={2000}
|
2021-07-29 17:17:28 +05:00
|
|
|
footer={[
|
|
|
|
<Button key="back" onClick={() => setTableSludgeVisible(false)}>
|
|
|
|
Закрыть
|
|
|
|
</Button>
|
|
|
|
]}
|
2021-07-22 14:53:30 +05:00
|
|
|
>
|
2021-07-28 17:59:16 +05:00
|
|
|
<SludgeDiagram/>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Modal>
|
|
|
|
<Button type="primary" onClick={() => setTableNNBVisible(true)} style={{marginLeft: "5px"}}>
|
|
|
|
ННБ
|
|
|
|
</Button>
|
|
|
|
<Modal
|
|
|
|
title='ННБ'
|
|
|
|
centered
|
|
|
|
visible={tableNNBVisible}
|
|
|
|
onCancel={() => setTableNNBVisible(false)}
|
2021-07-28 17:59:16 +05:00
|
|
|
width={2000}
|
2021-07-29 17:17:28 +05:00
|
|
|
footer={[
|
|
|
|
<Button key="back" onClick={() => setTableNNBVisible(false)}>
|
|
|
|
Закрыть
|
|
|
|
</Button>
|
|
|
|
]}
|
2021-07-22 14:53:30 +05:00
|
|
|
>
|
2021-07-28 17:59:16 +05:00
|
|
|
<Nnb/>
|
2021-07-22 14:53:30 +05:00
|
|
|
</Modal>
|
|
|
|
<Button type="primary" onClick={() => setDispositionVisible(true)} style={{marginLeft: "5px"}}>
|
|
|
|
Распоряжение
|
|
|
|
</Button>
|
|
|
|
<Modal
|
|
|
|
title='Распоряжение'
|
|
|
|
centered
|
|
|
|
visible={dispositionVisible}
|
|
|
|
onOk={() => setDispositionVisible(false)}
|
|
|
|
onCancel={() => setDispositionVisible(false)}
|
|
|
|
width={850}
|
|
|
|
okText='Ок'
|
|
|
|
cancelText='Отмена'
|
|
|
|
footer={[
|
|
|
|
<Checkbox style={{marginRight: '10px'}}>Принять распоряжение</Checkbox>,
|
|
|
|
<Button key="submit" type="secondary"
|
|
|
|
onClick={() => setDispositionVisible(false)}>
|
|
|
|
Отмена
|
|
|
|
</Button>,
|
|
|
|
<Button key="submit" type="primary"
|
|
|
|
onClick={() => setDispositionVisible(false)}>
|
|
|
|
Ок
|
|
|
|
</Button>
|
|
|
|
]}
|
|
|
|
>
|
|
|
|
<Disposition/>
|
|
|
|
</Modal>
|
|
|
|
</>)
|
|
|
|
}
|