diff --git a/src/components/modalWindows/DrillingFluid.jsx b/src/components/modalWindows/DrillingFluid.jsx
index 65ce6e0..4a4b94b 100644
--- a/src/components/modalWindows/DrillingFluid.jsx
+++ b/src/components/modalWindows/DrillingFluid.jsx
@@ -1,22 +1,10 @@
import { useState, useEffect } from 'react';
import { useParams } from "react-router-dom";
-import {Table, Input, Form, Popconfirm, Typography } from 'antd'
+import { Table, InputNumber, Form, Popconfirm, Typography } from 'antd'
import { makeColumn } from '../factory'
import { FluidService } from '../../services/api/services/FluidService';
import notify from "../notify"
-const originDataPlan = {
- key: '8', name: 'План', temperature: '', density: '', conditionalViscosity: '', r300: '', r600: '', r3r6: '', dnsDpa: '', plasticViscocity: '',
- snsDpa: '', r3r649С: '', dns49Cdpa: '', plasticViscocity49c: '', sns49Cdpa: '', mbt: '', sand: '', filter: '', crust: '', ktk: '', ph: '',
- hardness: '', chlorides: '', pf: '', mf: '', pm: '', fluidSolidPhase: '', grease: '', calciumCarbonate: ''
- }
-
-
-const originDataFact = {
- key: '9', name: 'Факт', temperature: '', density: '', conditionalViscosity: '', r300: '', r600: '', r3r6: '', dnsDpa: '', plasticViscocity: '',
- snsDpa: '', r3r649С: '', dns49Cdpa: '', plasticViscocity49c: '', sns49Cdpa: '', mbt: '', sand: '', filter: '', crust: '', ktk: '', ph: '',
- hardness: '', chlorides: '', pf: '', mf: '', pm: '', fluidSolidPhase: '', grease: '', calciumCarbonate: ''
- }
const EditableCell = ({
editing,
@@ -37,14 +25,13 @@ const EditableCell = ({
style={{ margin: 0 }}
rules={[
{
+ type: 'number',
required: true,
- message: '',
- pattern: '(-?[0-9]+\d*([.,]\d+)?)$|^(-?0[.,]\d*[0-9]+)$|^0$|^0.0$'
- //pattern: '^-?\d+(\.\d{1,2})?$'
+ message: null
},
]}
>
-
+
+ Дата последнего обновления:
+ План: {new Date(dataPlan?.lastUpdate).toLocaleString()}
+ Факт: {new Date(dataFact?.lastUpdate).toLocaleString()}
+
+ Дата последнего обновления: {new Date(data?.lastUpdate).toLocaleString()} +
> ) } \ No newline at end of file diff --git a/src/components/modalWindows/Nnb.jsx b/src/components/modalWindows/Nnb.jsx index 99291d0..70f067a 100644 --- a/src/components/modalWindows/Nnb.jsx +++ b/src/components/modalWindows/Nnb.jsx @@ -1,16 +1,10 @@ -import { useState } from 'react' +import { useState, useEffect } from 'react' import { useParams } from "react-router-dom"; -import {Table, Input, Form, Popconfirm, Typography } from 'antd' +import {Table, InputNumber, Form, Popconfirm, Typography } from 'antd' import { makeColumn } from '../factory' import { NnbDataService } from '../../services/api/services/NnbDataService'; +import notify from "../notify" -const originData = [ - { - key: '11', depth: '', zenithAngle: '', magneticAzimuth: '', trueAzimuth: '', directAzimuth: '', verticalDepth: '', absoluteMark: '', localNorthOffset: '', - localEastOffset: '', outFallOffset: '', offsetAzimuth: '', areaIntensity: '', offsetStopAngle: '', zenithIntensity: '', comment: '', depthPlanFactDifference: '', - distancePlanFactDifference: '' - } -] const EditableCell = ({ editing, @@ -32,12 +26,11 @@ const EditableCell = ({ rules={[ { required: true, - message: '', - pattern: '(-?[1-9]+\d*([.,]\d+)?)$|^(-?0[.,]\d*[1-9]+)$|^0$|^0.0$' + message: '' }, ]} > - ++ Дата последнего обновления: {new Date(data?.lastUpdate).toLocaleString()} +
>) } \ No newline at end of file diff --git a/src/pages/LastData.jsx b/src/pages/LastData.jsx index 543951d..2ba7c26 100644 --- a/src/pages/LastData.jsx +++ b/src/pages/LastData.jsx @@ -33,8 +33,6 @@ export default function LastData() { ]} >{new Date().toLocaleString()}