исправлены ошибки синтаксиса

This commit is contained in:
goodmice 2022-04-28 17:22:58 +05:00
parent d91815ebf2
commit f0659f234c
10 changed files with 14 additions and 15 deletions

View File

@ -1,6 +1,7 @@
import { Table as RawTable, Typography } from 'antd'
import { Fragment, memo, useCallback, useContext, useEffect, useState } from 'react'
import { IdWellContext } from '@asb/context'
import LoaderPortal from '@components/LoaderPortal'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { WellSelector } from '@components/selectors/WellSelector'
@ -8,7 +9,6 @@ import { makeGroupColumn, makeNumericColumn, makeNumericRender, makeTextColumn,
import { OperationStatService, WellOperationService } from '@api'
import { arrayOrDefault } from '@utils'
import { IdWellContext } from '../Well'
import '@styles/index.css'
import '@styles/statistics.less'

View File

@ -1,5 +1,5 @@
import { Link, useLocation } from 'react-router-dom'
import { useState, useEffect, memo, useMemo, useCallback } from 'react'
import { useState, useEffect, memo, useMemo } from 'react'
import { Tag, Button, Modal } from 'antd'
import { LineChartOutlined, ProfileOutlined } from '@ant-design/icons'

View File

@ -8,8 +8,7 @@ import { CompanyView, UserView } from '@components/views'
import { invokeWebApiWrapperAsync, downloadFile, formatBytes } from '@components/factory'
import { EditableTable, makeColumn, makeDateColumn, makeNumericColumn, makePaginationObject } from '@components/Table'
import { hasPermission } from '@utils/permissions'
import { FileService } from '@api's
import { FileService } from '@api'
const pageSize = 12
const { RangePicker } = DatePicker
@ -42,7 +41,7 @@ export const DocumentsTemplate = ({ idCategory, idWell: wellId, accept, headerCh
const [showLoader, setShowLoader] = useState(false)
const idwellContext = useContext(IdWellContext)
const idWell = useMemo(() => wellId ?? idwellContext, [wellId])
const idWell = useMemo(() => wellId ?? idwellContext, [wellId, idwellContext])
const uploadUrl = useMemo(() => `/api/well/${idWell}/files/?idCategory=${idCategory}`, [idWell, idCategory])

View File

@ -3,15 +3,15 @@ import moment from 'moment'
import { useState, useEffect, memo, useCallback, useContext } from 'react'
import { Radio, Button, Select, notification } from 'antd'
import { ReportService } from '@api'
import { Subscribe } from '@services/signalr'
import { IdWellContext } from '@asb/context'
import { LoaderPortal } from '@components/LoaderPortal'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { DateRangeWrapper } from 'components/Table/DateRangeWrapper'
import { Subscribe } from '@services/signalr'
import { ReportService } from '@api'
import { Reports } from './Reports'
import { ReportCreationNotify } from './ReportCreationNotify'
import { IdWellContext } from '../Well'
const timePeriodNames = [
{ label: '1 секунда', value: 1 },

View File

@ -1,12 +1,12 @@
import { useState, useEffect, memo, useCallback, useContext } from 'react'
import { Table, Select, DatePicker, Input } from 'antd'
import { IdWellContext } from '@asb/context'
import LoaderPortal from '@components/LoaderPortal'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { makeColumn, makeDateColumn, makeNumericSorter } from '@components/Table'
import { MessageService } from '@api'
import { IdWellContext } from '../Well'
import '@styles/message.css'

View File

@ -1,17 +1,17 @@
import { useState, useEffect, memo, useContext } from 'react'
import { IdWellContext } from '@asb/context'
import {
EditableTable,
makeNumericMinMax,
makeNumericStartEnd,
} from '@components/Table'
import { DrillFlowChartService } from '@api'
import LoaderPortal from '@components/LoaderPortal'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { hasPermission } from '@utils/permissions'
import { arrayOrDefault } from '@utils'
import { DrillFlowChartService } from '@api'
import { IdWellContext } from '../Well'
const columns = [
makeNumericStartEnd('Глубина, м', 'depth'),

View File

@ -16,6 +16,7 @@ import 'chartjs-adapter-moment'
import zoomPlugin from 'chartjs-plugin-zoom'
import ChartDataLabels from 'chartjs-plugin-datalabels'
import { IdWellContext } from '@asb/context'
import LoaderPortal from '@components/LoaderPortal'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { formatDate, fractionalSum } from '@utils/datetime'
@ -27,7 +28,6 @@ import AdditionalTables from './AdditionalTables'
import '@styles/index.css'
import '@styles/tvd.less'
import { IdWellContext } from '@asb/pages/Well'
Chart.register(
TimeScale,

View File

@ -1,5 +1,6 @@
import { useState, useEffect, useCallback, memo, useMemo, useContext } from 'react'
import { IdWellContext } from '@asb/context'
import {
EditableTable,
makeSelectColumn,
@ -13,7 +14,6 @@ import { DrillParamsService, WellOperationService } from '@api'
import { hasPermission } from '@utils/permissions'
import { arrayOrDefault } from '@utils'
import { IdWellContext } from '../Well'
export const getColumns = async (idWell) => {
let sectionTypes = await WellOperationService.getSectionTypes(idWell)

View File

@ -3,6 +3,7 @@ import { Input } from 'antd'
import { useLocation } from 'react-router-dom'
import { useState, useEffect, memo, useMemo, useCallback, useContext } from 'react'
import { IdWellContext } from '@asb/context'
import {
EditableTable,
makeColumn,
@ -21,7 +22,6 @@ import { hasPermission } from '@utils/permissions'
import { arrayOrDefault } from '@utils'
import { WellOperationService } from '@api'
import { IdWellContext } from '../Well'
const { TextArea } = Input

View File

@ -1,12 +1,12 @@
import { useState, useEffect, memo, useContext } from 'react'
import { IdWellContext } from '@asb/context'
import LoaderPortal from '@components/LoaderPortal'
import { invokeWebApiWrapperAsync } from '@components/factory'
import { Table, makeColumn, makeColumnsPlanFact, makeNumericRender } from '@components/Table'
import { calcDuration } from '@utils/datetime'
import { OperationStatService } from '@api'
import { IdWellContext } from '../Well'
const numericRender = makeNumericRender(2)