CF2-33: Пустые компоненты, вызывающие Documents, заменены сразу на вызов Documents

This commit is contained in:
KharchenkoVV 2021-07-26 16:07:05 +05:00
parent 5f8738d1bf
commit b6bfce38de
8 changed files with 10 additions and 64 deletions

View File

@ -171,7 +171,7 @@ export default function Documents({selectedFileCategory}) {
}
}
GetDocuments()
}, [id, range, selectedFileCategory, isTableUpdating])
}, [id, range,page, selectedFileCategory, isTableUpdating])
return (
<div>

View File

@ -1,8 +0,0 @@
import Documents from "../components/Documents"
export default function Cementing({selectedFileCategory}) {
return(
<Documents selectedFileCategory={selectedFileCategory} />
)
}

View File

@ -1,8 +0,0 @@
import Documents from "../components/Documents"
export default function DocumentsForWell({selectedFileCategory}) {
return(
<Documents selectedFileCategory={selectedFileCategory} />
)
}

View File

@ -1,8 +0,0 @@
import Documents from "../components/Documents"
export default function Gti({selectedFileCategory}) {
return(
<Documents selectedFileCategory={selectedFileCategory} />
)
}

View File

@ -1,8 +0,0 @@
import Documents from "../components/Documents"
export default function Master({selectedFileCategory}) {
return(
<Documents selectedFileCategory={selectedFileCategory} />
)
}

View File

@ -1,8 +0,0 @@
import Documents from "../components/Documents"
export default function Nnb({selectedFileCategory}) {
return(
<Documents selectedFileCategory={selectedFileCategory} />
)
}

View File

@ -1,8 +0,0 @@
import Documents from "../components/Documents"
export default function Supervisor({selectedFileCategory}) {
return(
<Documents selectedFileCategory={selectedFileCategory} />
)
}

View File

@ -7,13 +7,7 @@ import Messages from "../pages/Messages";
import Report from "../pages/Report";
import Analysis from "../pages/Analysis";
import WellAnalysis from "../pages/WellAnalysis";
import FluidService from "../components/Documents";
import Cementing from "../pages/Cementing";
import Nnb from "../pages/Nnb";
import Gti from "../pages/Gti";
import DocumentForWell from "../pages/DocumentForWell";
import Supervisor from "../pages/Supervisor";
import Master from "../pages/Master";
import Documents from "../components/Documents";
import LastData from '../pages/LastData'
import TelemetryView from "../pages/TelemetryView";
@ -110,31 +104,31 @@ export default function Well() {
<TelemetryView/>
</Route>
<Route path="/well/:id/fluidService">
<FluidService selectedFileCategory={1}/>
<Documents selectedFileCategory={1}/>
</Route>
<Route path="/well/:id/cementing">
<Cementing selectedFileCategory={2}/>
<Documents selectedFileCategory={2}/>
</Route>
<Route path="/well/:id/nnb">
<Nnb selectedFileCategory={3}/>
<Documents selectedFileCategory={3}/>
</Route>
<Route path="/well/:id/gti">
<Gti selectedFileCategory={4}/>
<Documents selectedFileCategory={4}/>
</Route>
<Route path="/well/:id/documentsForWell">
<DocumentForWell selectedFileCategory={5}/>
<Documents selectedFileCategory={5}/>
</Route>
<Route path="/well/:id/supervisor">
<Supervisor selectedFileCategory={6}/>
<Documents selectedFileCategory={6}/>
</Route>
<Route path="/well/:id/master">
<Master selectedFileCategory={7}/>
<Documents selectedFileCategory={7}/>
</Route>
<Route path="/well/:id/lastData">
<LastData/>
</Route>
<Route path="/well/:id/documents">
<FluidService/>
<Documents/>
</Route>
<Route path="/">
<Redirect to={{pathname: `/well/${id}/telemetry`}}/>