fix report warnings

This commit is contained in:
Фролов 2021-07-19 16:19:01 +05:00
parent 03c8f8d3fc
commit 5c7029dd97

View File

@ -67,7 +67,7 @@ export default function Report(props) {
title: 'Название отчета', title: 'Название отчета',
dataIndex: 'reportName', dataIndex: 'reportName',
key: 'reportName', key: 'reportName',
render: name => <a onClick={event => getReportFile(event, name)} download={name}>{name}</a> render: name => <a href='#' onClick={event => getReportFile(event, name)} download={name}>{name}</a>
}, },
]; ];
@ -80,7 +80,7 @@ export default function Report(props) {
<br /> <br />
<span> { progressData.operation } </span> <span> { progressData.operation } </span>
<br /> <br />
<a onClick={event => {getReportFile(event, progressData.reportName)}} <a href='#' onClick={event => {getReportFile(event, progressData.reportName)}}
download={progressData.reportName}> download={progressData.reportName}>
{ progressData.reportName } { progressData.reportName }
</a> </a>
@ -172,7 +172,7 @@ export default function Report(props) {
} }
getRepostSizeAsync() getRepostSizeAsync()
},[rangeDate, step, format]) },[rangeDate, step, format, wellId])
useEffect(()=>{ useEffect(()=>{
async function getSuitableReportsAsync() { async function getSuitableReportsAsync() {
@ -204,7 +204,7 @@ export default function Report(props) {
} }
getSuitableReportsAsync() getSuitableReportsAsync()
},[rangeDate, step, format]) },[rangeDate, step, format, wellId])
useEffect(()=>{ useEffect(()=>{
async function getDatesRange() { async function getDatesRange() {
@ -214,7 +214,7 @@ export default function Report(props) {
} }
getDatesRange() getDatesRange()
},[]) },[wellId])
return (<> return (<>
<div className="w-100 mt-20px"> <div className="w-100 mt-20px">