forked from ddrilling/asb_cloud_front
CF2-33: Пустые компоненты, вызывающие Documents, заменены сразу на вызов Documents
This commit is contained in:
parent
5f8738d1bf
commit
b6bfce38de
@ -171,7 +171,7 @@ export default function Documents({selectedFileCategory}) {
|
||||
}
|
||||
}
|
||||
GetDocuments()
|
||||
}, [id, range, selectedFileCategory, isTableUpdating])
|
||||
}, [id, range,page, selectedFileCategory, isTableUpdating])
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
@ -1,8 +0,0 @@
|
||||
import Documents from "../components/Documents"
|
||||
|
||||
export default function Cementing({selectedFileCategory}) {
|
||||
|
||||
return(
|
||||
<Documents selectedFileCategory={selectedFileCategory} />
|
||||
)
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
import Documents from "../components/Documents"
|
||||
|
||||
export default function DocumentsForWell({selectedFileCategory}) {
|
||||
|
||||
return(
|
||||
<Documents selectedFileCategory={selectedFileCategory} />
|
||||
)
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
import Documents from "../components/Documents"
|
||||
|
||||
export default function Gti({selectedFileCategory}) {
|
||||
|
||||
return(
|
||||
<Documents selectedFileCategory={selectedFileCategory} />
|
||||
)
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
import Documents from "../components/Documents"
|
||||
|
||||
export default function Master({selectedFileCategory}) {
|
||||
|
||||
return(
|
||||
<Documents selectedFileCategory={selectedFileCategory} />
|
||||
)
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
import Documents from "../components/Documents"
|
||||
|
||||
export default function Nnb({selectedFileCategory}) {
|
||||
|
||||
return(
|
||||
<Documents selectedFileCategory={selectedFileCategory} />
|
||||
)
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
import Documents from "../components/Documents"
|
||||
|
||||
export default function Supervisor({selectedFileCategory}) {
|
||||
|
||||
return(
|
||||
<Documents selectedFileCategory={selectedFileCategory} />
|
||||
)
|
||||
}
|
@ -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`}}/>
|
||||
|
Loading…
Reference in New Issue
Block a user