LastData weekend concept

This commit is contained in:
Фролов 2021-08-20 17:59:28 +05:00
parent 2ab34efdd6
commit 6ef45998ad
2 changed files with 18 additions and 10 deletions

View File

@ -1,12 +1,12 @@
import { useState, useEffect } from 'react' // import { useState, useEffect } from 'react'
import { EditableTable, DatePickerWrapper, SelectFromDictionary, numericColumnOptions, makeColumn } from "../../components/Table" // import { EditableTable, DatePickerWrapper, SelectFromDictionary, numericColumnOptions, makeColumn } from "../../components/Table"
import LoaderPortal from '../../components/LoaderPortal' // import LoaderPortal from '../../components/LoaderPortal'
import { invokeWebApiWrapperAsync } from '../../components/factory' // import { invokeWebApiWrapperAsync } from '../../components/factory'
export default function LastDataTable({idWell}){ export const LastDataTable = ({idWell, columns, service}) => {
const [showLoader, setShowLoader] = useState(false) // const [showLoader, setShowLoader] = useState(false)
const update = () => {} // const update = () => {}
return <div>Open hystory</div> return <div>Open hystory</div>
} }

View File

@ -1,8 +1,16 @@
//import { useState, useEffect } from 'react' import { LastDataTable } from './LastDataTable'
import { MudDiagramService } from '../../services/api'
const columnsMud = []
export default function LastData({idWell}){ export default function LastData({idWell}){
return <> return <>
<h3>last data</h3> <h3>Замер бурового раствора</h3>
<LastDataTable
idWell={idWell}
columns={columnsMud}
service={MudDiagramService} />
<h3>Шлабограмма</h3>
<h3>ННБ</h3>
</> </>
} }