|
|
|
@ -475,7 +475,10 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
}
|
|
|
|
|
handpathoptionvalue=(value)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
pathoptionvalue:value
|
|
|
|
|
pathoptionvalue:value,
|
|
|
|
|
shixunfileexpectpicturepath:undefined,
|
|
|
|
|
shixunfilestandardpicturepath:undefined,
|
|
|
|
|
shixunfilepicturepath:undefined
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
showrepositoryurltip=(type)=>{
|
|
|
|
@ -640,19 +643,20 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
let{checkpointId}=this.state;
|
|
|
|
|
let url = "/shixuns/"+id+"/challenges/"+checkpointId+".json";
|
|
|
|
|
let newchallenge={
|
|
|
|
|
path:shixunfilepath,
|
|
|
|
|
exec_path:shixunfilepathplay,
|
|
|
|
|
show_type:pathoptionvalue===-1?undefined:pathoptionvalue,
|
|
|
|
|
original_picture_path:pathoptionvalue===-1?undefined:shixunfileexpectpicturepath,
|
|
|
|
|
expect_picture_path:pathoptionvalue===-1?undefined:shixunfilestandardpicturepath,
|
|
|
|
|
picture_path:pathoptionvalue===-1?undefined:shixunfilepicturepath,
|
|
|
|
|
test_set_score:newscorevalue,
|
|
|
|
|
test_set_average:markvalue,
|
|
|
|
|
web_route:web_route===null?undefined:web_route
|
|
|
|
|
}
|
|
|
|
|
axios.put(url,{
|
|
|
|
|
tab:1,
|
|
|
|
|
challenge:{
|
|
|
|
|
path:shixunfilepath,
|
|
|
|
|
exec_path:shixunfilepathplay,
|
|
|
|
|
show_type:pathoptionvalue,
|
|
|
|
|
original_picture_path:shixunfileexpectpicturepath,
|
|
|
|
|
expect_picture_path:shixunfilestandardpicturepath,
|
|
|
|
|
picture_path:shixunfilepicturepath,
|
|
|
|
|
test_set_score:newscorevalue,
|
|
|
|
|
test_set_average:markvalue,
|
|
|
|
|
web_route:web_route===null?undefined:web_route
|
|
|
|
|
},
|
|
|
|
|
challenge:newchallenge,
|
|
|
|
|
test_set:evaluationlist
|
|
|
|
|
}
|
|
|
|
|
).then((response) => {
|
|
|
|
|