|
|
|
@ -69,11 +69,18 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
let query = this.props.location.pathname;
|
|
|
|
|
const type = query.split('/');
|
|
|
|
|
this.setState({
|
|
|
|
|
shixuntypes:type[3],
|
|
|
|
|
spinning:true
|
|
|
|
|
})
|
|
|
|
|
this.getdatalist()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getdatalist=()=>{
|
|
|
|
|
let homeworkid=this.props.match.params.homeworkid;
|
|
|
|
|
let url = `/student_works/${homeworkid}/shixun_work_report.json`
|
|
|
|
|
let url = `/student_works/${homeworkid}/shixun_work_report.json`
|
|
|
|
|
axios.get(url).then((result) => {
|
|
|
|
|
if (result.data.status === 403||result.data.status === 401||result.data.status === 407||result.data.status === 408) {
|
|
|
|
|
|
|
|
|
@ -90,11 +97,7 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
spinning:false
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
let query = this.props.location.pathname;
|
|
|
|
|
const type = query.split('/');
|
|
|
|
|
this.setState({
|
|
|
|
|
shixuntypes:type[3]
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
jumptopic=(anchorName)=>{
|
|
|
|
|
; if (anchorName) {
|
|
|
|
@ -182,6 +185,7 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
{...this.props}
|
|
|
|
|
data={data}
|
|
|
|
|
jumptopic={this.jumptopic}
|
|
|
|
|
getdatalist={()=>this.getdatalist()}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|