forked from ddrilling/asb_cloud_front
nit fix warnings and client update
This commit is contained in:
parent
fba38ed023
commit
4638e46a93
@ -57,8 +57,8 @@ export default function RigMnemo({
|
||||
blockPositionLocal = blockPositionLocal ? blockPositionLocal : 0
|
||||
const blockTranslate = `translate(-75, ${-35 + (50 * (30 - blockPositionLocal) / 30)})`
|
||||
|
||||
let bitPositionLocal = +bitPosition
|
||||
bitPositionLocal = bitPositionLocal ? bitPositionLocal : 0
|
||||
//let bitPositionLocal = +bitPosition
|
||||
//bitPositionLocal = bitPositionLocal ? bitPositionLocal : 0
|
||||
//const bitTranslate = `translate(0, ${-41 + 41 * (3426 - bitPosition)/(3426 - 3200)})`
|
||||
const bitTranslate = `translate(0, 0)`
|
||||
|
||||
|
@ -6,7 +6,7 @@ import { TreeSelect } from 'antd'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import notify from './notify'
|
||||
|
||||
export default function WellTreeSelector({}) {
|
||||
export default function WellTreeSelector() {
|
||||
const [wellsTree, setWellsTree] = useState([])
|
||||
const [showLoader, setShowLoader] = useState(false)
|
||||
const history = useHistory()
|
||||
|
@ -7,7 +7,7 @@ import {ClusterService} from '../services/api'
|
||||
import notify from '../components/notify'
|
||||
|
||||
const calcViewParams = (clusters) => {
|
||||
if (clusters.length === 0)
|
||||
if (clusters && clusters.length === 0)
|
||||
return {center:[60.81226, 70.0562], zoom: 5}
|
||||
|
||||
const center = clusters.reduce((sum, cluster) => {
|
||||
|
@ -67,7 +67,7 @@ export default function Report(props) {
|
||||
title: 'Название отчета',
|
||||
dataIndex: 'reportName',
|
||||
key: 'reportName',
|
||||
render: name => <a href='#' onClick={event => getReportFile(event, name)} download={name}>{name}</a>
|
||||
render: name => <button onClick={event => getReportFile(event, name)} download={name}>{name}</button>
|
||||
},
|
||||
];
|
||||
|
||||
@ -80,10 +80,10 @@ export default function Report(props) {
|
||||
<br />
|
||||
<span> { progressData.operation } </span>
|
||||
<br />
|
||||
<a href='#' onClick={event => {getReportFile(event, progressData.reportName)}}
|
||||
<button onClick={event => {getReportFile(event, progressData.reportName)}}
|
||||
download={progressData.reportName}>
|
||||
{ progressData.reportName }
|
||||
</a>
|
||||
</button>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ export default function WellAnalysis() {
|
||||
setLoader(false)
|
||||
}
|
||||
GetOperations()
|
||||
}, [id, categories, range])
|
||||
}, [id, categories, range, page])
|
||||
|
||||
return(<>
|
||||
<div className='filter-group'>
|
||||
|
Loading…
Reference in New Issue
Block a user