dev_aliyun_beta
杨树明 6 years ago
parent ee8c6a6b6d
commit c766a452e9

@ -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>

@ -32,6 +32,7 @@ class OfficialAcademicTranscript extends Component {
challenge_id:id
}).then((result)=>{
if(result.data.status===0){
this.props.getdatalist()
this.props.showNotification(result.data.message);
}else{
this.props.showNotification(result.data.message);

Loading…
Cancel
Save