|
|
|
@ -124,7 +124,8 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
handpathopt:false,
|
|
|
|
|
scorevalue:false,
|
|
|
|
|
markvalue:true,
|
|
|
|
|
scoretype:undefined
|
|
|
|
|
scoretype:undefined,
|
|
|
|
|
web_route:null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -215,6 +216,7 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
position: response.data.position, //int 关卡位置,导航栏中的第几关
|
|
|
|
|
scorevalue:response.data.test_set_score,
|
|
|
|
|
markvalue:response.data.test_set_average,
|
|
|
|
|
web_route:response.data.web_route
|
|
|
|
|
})
|
|
|
|
|
this.evaluationoninputvalueonload();
|
|
|
|
|
if(response.data.power===false){
|
|
|
|
@ -579,7 +581,7 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
$('textarea[autoHeight]').autoHeight();
|
|
|
|
|
}
|
|
|
|
|
submitarbitrationevaluation=()=>{
|
|
|
|
|
let{evaluationlist,shixunfilepath,shixunfilepathplay,shixunfileexpectpicturepath,shixunfilestandardpicturepath,shixunfilepicturepath,pathoptionvalue,scorevalue,markvalue}=this.state;
|
|
|
|
|
let{evaluationlist,shixunfilepath,shixunfilepathplay,shixunfileexpectpicturepath,shixunfilestandardpicturepath,shixunfilepicturepath,pathoptionvalue,scorevalue,markvalue,web_route}=this.state;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let newscorevalue;
|
|
|
|
@ -647,7 +649,8 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
expect_picture_path:shixunfilestandardpicturepath,
|
|
|
|
|
picture_path:shixunfilepicturepath,
|
|
|
|
|
test_set_score:newscorevalue,
|
|
|
|
|
test_set_average:markvalue
|
|
|
|
|
test_set_average:markvalue,
|
|
|
|
|
web_route:web_route===null?undefined:web_route
|
|
|
|
|
},
|
|
|
|
|
test_set:evaluationlist
|
|
|
|
|
}
|
|
|
|
@ -741,6 +744,12 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
updatewebroute=(e)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
web_route:e.target.value
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
@ -768,7 +777,7 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
next_challenge,
|
|
|
|
|
StudentTaskPapers,
|
|
|
|
|
StudentTaskDocs,
|
|
|
|
|
handpathopt,
|
|
|
|
|
web_route,
|
|
|
|
|
scorevalue,
|
|
|
|
|
markvalue,
|
|
|
|
|
scoretype
|
|
|
|
@ -978,6 +987,20 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{pathoptionvalue===4&&web_route!=null?<div className="edu-back-white mb10 clearfix">
|
|
|
|
|
<div className="padding40-20">
|
|
|
|
|
<p className="color-grey-6 font-16 mb20">Web路由</p>
|
|
|
|
|
<div className="df">
|
|
|
|
|
<div className="flex1 mr20">
|
|
|
|
|
<input type="text" className="input-100-45 change" autoComplete="off"
|
|
|
|
|
id="shixun_file_picture_path" name="challenge[picture_path]"
|
|
|
|
|
value={web_route}
|
|
|
|
|
onInput={(e)=>this.updatewebroute(e)}
|
|
|
|
|
placeholder="网站类型实训,请填写Web路由地址。例:java/mypage"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""}
|
|
|
|
|
|
|
|
|
|
{pathoptionvalue===1||pathoptionvalue===5||pathoptionvalue===6?<div className="edu-back-white mb10 clearfix">
|
|
|
|
|
<div className="padding40-20">
|
|
|
|
|