forked from ddrilling/asb_cloud_front
grouping last data
This commit is contained in:
parent
877306b876
commit
2ab34efdd6
@ -1,25 +0,0 @@
|
||||
import { useState } from 'react'
|
||||
import { AnalysisDepthToDay } from '../AnalysisDepthToDay'
|
||||
import { Button, Modal } from 'antd'
|
||||
|
||||
export default function ModalChartDepthToDay({idWell}) {
|
||||
const [chartVisible, setChartVisible] = useState(false)
|
||||
|
||||
return (<>
|
||||
<Button type="secondary" onClick={() => setChartVisible(true)} style={{ marginLeft: "5px" }}>
|
||||
Открыть
|
||||
</Button>
|
||||
<Modal
|
||||
title='Последние показатели бурового раствора'
|
||||
centered
|
||||
visible={chartVisible}
|
||||
onOk={() => setChartVisible(false)}
|
||||
onCancel={() => setChartVisible(false)}
|
||||
width={1800}
|
||||
okText='Ок'
|
||||
cancelText='Отмена'
|
||||
>
|
||||
<AnalysisDepthToDay idWell={idWell}/>
|
||||
</Modal>
|
||||
</>)
|
||||
}
|
@ -5,8 +5,6 @@ import { useState, useEffect } from "react";
|
||||
import { ClusterService } from '../services/api'
|
||||
import { notify } from "../components/factory"
|
||||
import { Table, Tag, Button } from 'antd';
|
||||
import ModalChartDepthToDay from '../components/modalWindows/ModalChartDepthToday'
|
||||
|
||||
|
||||
export default function Cluster() {
|
||||
let { id } = useParams()
|
||||
@ -117,7 +115,7 @@ export default function Cluster() {
|
||||
},
|
||||
{
|
||||
title: 'График глубина-день',
|
||||
render: (_, item) => (<ModalChartDepthToDay idWell={item.id}/>)
|
||||
render: (_, item) => (<Button>Открыть</Button>)
|
||||
},
|
||||
{
|
||||
title: 'Таблица по операциям',
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useParams } from "react-router-dom";
|
||||
import { InputNumber, Form, Popconfirm, Typography, Button } from 'antd'
|
||||
import LoaderPortal from '../LoaderPortal'
|
||||
import { makeColumn, Table } from '../Table'
|
||||
import LoaderPortal from '../../components/LoaderPortal'
|
||||
import { makeColumn, Table } from '../../components/Table'
|
||||
import { FluidService } from '../../services/api/services/FluidService';
|
||||
import { notify } from "../factory"
|
||||
import { notify } from "../../components/factory"
|
||||
|
||||
const EditableCell = ({
|
||||
editing,
|
12
src/pages/LastData/LastDataTable.jsx
Normal file
12
src/pages/LastData/LastDataTable.jsx
Normal file
@ -0,0 +1,12 @@
|
||||
import { useState, useEffect } from 'react'
|
||||
import { EditableTable, DatePickerWrapper, SelectFromDictionary, numericColumnOptions, makeColumn } from "../../components/Table"
|
||||
import LoaderPortal from '../../components/LoaderPortal'
|
||||
import { invokeWebApiWrapperAsync } from '../../components/factory'
|
||||
|
||||
export default function LastDataTable({idWell}){
|
||||
const [showLoader, setShowLoader] = useState(false)
|
||||
|
||||
const update = () => {}
|
||||
|
||||
return <div>Open hystory</div>
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
import {Button, Modal } from "antd";
|
||||
import {DrillingFluid} from "../components/modalWindows/DrillingFluid";
|
||||
import {DrillingFluid} from "../../components/modalWindows/DrillingFluid";
|
||||
import {useState} from "react";
|
||||
import {SludgeDiagram} from "../components/modalWindows/MudDiagram";
|
||||
import {Nnb} from "../components/modalWindows/Nnb"
|
||||
import {SludgeDiagram} from "../../components/modalWindows/MudDiagram";
|
||||
import {Nnb} from "../../components/modalWindows/Nnb"
|
||||
|
||||
export default function LastData(/*{idWell}*/) {
|
||||
|
8
src/pages/LastData/index.jsx
Normal file
8
src/pages/LastData/index.jsx
Normal file
@ -0,0 +1,8 @@
|
||||
//import { useState, useEffect } from 'react'
|
||||
|
||||
export default function LastData({idWell}){
|
||||
return <>
|
||||
<h3>last data</h3>
|
||||
|
||||
</>
|
||||
}
|
@ -44,7 +44,7 @@ sectionTypeIds?: Array<number>,
|
||||
operationCategoryIds?: Array<number>,
|
||||
begin?: string,
|
||||
end?: string,
|
||||
skip: number,
|
||||
skip: number = 0,
|
||||
take: number = 32,
|
||||
): Promise<WellOperationDtoPaginationContainer> {
|
||||
const result = await __request({
|
||||
|
Loading…
Reference in New Issue
Block a user