forked from jasder/forgeplus
72 lines
54 KiB
JavaScript
72 lines
54 KiB
JavaScript
webpackJsonp([272],{
|
||
|
||
/***/ 4502:
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css__ = __webpack_require__(173);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip__ = __webpack_require__(172);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_checkbox_style_css__ = __webpack_require__(308);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_checkbox_style_css__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox__ = __webpack_require__(305);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css__ = __webpack_require__(27);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_modal__ = __webpack_require__(28);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_modal__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_button_style_css__ = __webpack_require__(89);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_button_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_button_style_css__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_button__ = __webpack_require__(75);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_button___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_button__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_input_style_css__ = __webpack_require__(57);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_input_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_input_style_css__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_input__ = __webpack_require__(58);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_input__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_radio_style_css__ = __webpack_require__(178);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_radio_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_antd_lib_radio_style_css__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_radio__ = __webpack_require__(176);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_radio___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_antd_lib_radio__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_select_style_css__ = __webpack_require__(307);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_select_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_antd_lib_select_style_css__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_antd_lib_select__ = __webpack_require__(303);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_antd_lib_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_antd_lib_select__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react__ = __webpack_require__(0);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_react_router_dom__ = __webpack_require__(48);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_axios__ = __webpack_require__(8);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_axios__);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__modals_Bottomsubmit__ = __webpack_require__(1612);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18_educoder__ = __webpack_require__(5);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__css_TPMchallengesnew_css__ = __webpack_require__(361);
|
||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__css_TPMchallengesnew_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19__css_TPMchallengesnew_css__);
|
||
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var $=window.$;var Option=__WEBPACK_IMPORTED_MODULE_13_antd_lib_select___default.a.Option;var RadioGroup=__WEBPACK_IMPORTED_MODULE_11_antd_lib_radio___default.a.Group;var TextArea=__WEBPACK_IMPORTED_MODULE_9_antd_lib_input___default.a.TextArea;function isNulltpm(str){if(str=="")return true;var regu="^[ ]+$";var re=new RegExp(regu);return re.test(str);}var TPMevaluation=function(_Component){_inherits(TPMevaluation,_Component);function TPMevaluation(props){_classCallCheck(this,TPMevaluation);var _this=_possibleConstructorReturn(this,(TPMevaluation.__proto__||Object.getPrototypeOf(TPMevaluation)).call(this,props));_this.setevaluationlist=function(newevaluationlist){_this.setState({evaluationlist:newevaluationlist});console.log(newevaluationlist);};_this.addevaluationon=function(){var _this$state=_this.state,evaluationlist=_this$state.evaluationlist,markvalue=_this$state.markvalue;var newevaluationlist=evaluationlist;newevaluationlist.push({hidden:0,input:"",output:"",score:0,match_rule:"full"});newevaluationlist=_this.oneditevaluationlist(newevaluationlist,markvalue);_this.setevaluationlist(newevaluationlist);};_this.del_test_array=function(key){var _this$state2=_this.state,evaluationlist=_this$state2.evaluationlist,markvalue=_this$state2.markvalue;var newevaluationlist=evaluationlist;newevaluationlist.splice(key,1);newevaluationlist=_this.oneditevaluationlist(newevaluationlist,markvalue);_this.setevaluationlist(newevaluationlist);};_this.getfilepath=function(e,shixunfilepath,type){_this.setState({evaluationvisible:true,selectpath:e.target.value,selectpatharr:[],pathtype:type});var id=_this.props.match.params.shixunId;var url="/shixuns/"+id+"/repository.json";__WEBPACK_IMPORTED_MODULE_16_axios___default.a.post(url,{path:""}).then(function(response){if(response.data.status===403||response.data.status===401||response.data.status===500){}else{_this.setState({trees:response.data.trees,saveshixunfilepath:shixunfilepath,path:"",main:[]});}}).catch(function(error){console.log(error);});};_this.sendgetfilepath=function(newpath,type,newpathtype){var id=_this.props.match.params.shixunId;var _this$state3=_this.state,path=_this$state3.path,main=_this$state3.main,pathtype=_this$state3.pathtype;var ary=main;var paths=path;_this.setState({selectpatharr:[]});if(paths===""&&type==="tree"){newpath=newpath+"/";paths="";if(main.length===0){ary.push({val:"根目录/",path:""},{val:newpath,path:paths+newpath});}else{ary.push({val:newpath,path:paths+newpath});}}else if(paths!=""&&type==="tree"){newpath=newpath+"/";ary.push({val:newpath,path:paths+newpath});}var url="/shixuns/"+id+"/repository.json";if(type==="tree"){__WEBPACK_IMPORTED_MODULE_16_axios___default.a.post(url,{path:paths+newpath}).then(function(response){if(response.data.status===403||response.data.status===401||response.data.status===500){}else{_this.setState({trees:response.data.trees,path:paths+newpath,main:ary// selectpath:""
|
||
});}}).catch(function(error){console.log(error);});}if(pathtype===2){_this.setState({selectpath:newpathtype});}};_this.goblakepath=function(path,key){var _this$state4=_this.state,main=_this$state4.main,selectpath=_this$state4.selectpath,pathtype=_this$state4.pathtype;var newmain=[];for(var i=0;i<=key;i++){newmain.push(main[i]);}var id=_this.props.match.params.shixunId;var url="/shixuns/"+id+"/repository.json";__WEBPACK_IMPORTED_MODULE_16_axios___default.a.post(url,{path:path}).then(function(response){if(response.data.status===403||response.data.status===401||response.data.status===500){}else{_this.setState({trees:response.data.trees,path:path,main:newmain// selectpath:selectpath
|
||
});}}).catch(function(error){console.log(error);});if(pathtype===2){var paths=path.substring(0,path.length-1);console.log(paths);_this.setState({selectpath:paths});}};_this.savegetfilepath=function(value){var _this$state5=_this.state,selectpath=_this$state5.selectpath,saveshixunfilepath=_this$state5.saveshixunfilepath,pathtype=_this$state5.pathtype;if(pathtype===1){var newselectpath=void 0;if(saveshixunfilepath==="shixunfilepathplay"){newselectpath=value;}else{var type=selectpath.split(';');var types=false;for(var i=0;i<type.length;i++){if(type[i]===value){types=true;return;}}if(types===false){newselectpath=selectpath+value+";";}else{newselectpath=selectpath;}}_this.setState({// selectpatharr:newarr,
|
||
selectpath:newselectpath});}};_this.evaluationenter=function(){var _this$state6=_this.state,saveshixunfilepath=_this$state6.saveshixunfilepath,selectpath=_this$state6.selectpath;_this.setState(_defineProperty({evaluationvisible:false},saveshixunfilepath,selectpath));};_this.evaluationhideModal=function(){_this.setState({evaluationvisible:false});};_this.handpathoptionvalue=function(value){_this.setState({pathoptionvalue:value,shixunfileexpectpicturepath:undefined,shixunfilestandardpicturepath:undefined,shixunfilepicturepath:undefined});};_this.showrepositoryurltip=function(type){if(type===1){_this.setState({showrepositoryurltiptype:true});}else{_this.setState({showrepositoryurltiptype:false});}};_this.evaluationonChange=function(e,key){var evaluationlist=_this.state.evaluationlist;var newevaluationlist=evaluationlist;var newtype=void 0;if(e===1){newtype=0;}else{newtype=1;}newevaluationlist[key].hidden=newtype;_this.setState({evaluationlist:newevaluationlist});_this.setevaluationlist(newevaluationlist);};_this.editpercentage=function(e,key){var _this$state7=_this.state,evaluationlist=_this$state7.evaluationlist,scoretype=_this$state7.scoretype;if(scoretype===key){_this.setState({scoretype:undefined});}var newevaluationlist=evaluationlist;var sum=parseInt(e.target.value);if(isNaN(sum)){sum=0;}newevaluationlist[key].score=sum;_this.setState({evaluationlist:newevaluationlist,markvalue:false});_this.setevaluationlist(newevaluationlist);};_this.changeEvaluationRule=function(e,key){var evaluationlist=_this.state.evaluationlist;var newevaluationlist=evaluationlist;newevaluationlist[key].match_rule=e.target.value;_this.setevaluationlist(newevaluationlist);};_this.evaluationoninputvalue=function(e,key,type){$.fn.autoHeight=function(){function autoHeight(elem){elem.style.height='auto';elem.style.maxHeight='140px';elem.scrollTop=0;//防抖动
|
||
elem.style.height=elem.scrollHeight+'px';}this.each(function(){autoHeight(this);$(this).on('keyup',function(){autoHeight(this);});});};$('textarea[autoHeight]').autoHeight();var evaluationlist=_this.state.evaluationlist;var newevaluationlist=evaluationlist;if(type==="sr"){newevaluationlist[key].input=e.target.value;}else if(type==="yq"){// 统一转成\r\n
|
||
newevaluationlist[key].output=e.target.value?e.target.value.replace(/\r?\n/g,"\r\n"):e.target.value;}_this.setevaluationlist(newevaluationlist);};_this.evaluationoninputvalueonload=function(){$.fn.autoHeight=function(){function autoHeight(elem){elem.style.height='auto';elem.style.maxHeight='140px';elem.scrollTop=0;//防抖动
|
||
elem.style.height=elem.scrollHeight+'px';}this.each(function(){autoHeight(this);$(this).on('keyup',function(){autoHeight(this);});});};$('textarea[autoHeight]').autoHeight();};_this.submitarbitrationevaluation=function(){var _this$state8=_this.state,exec_time=_this$state8.exec_time,evaluationlist=_this$state8.evaluationlist,shixunfilepath=_this$state8.shixunfilepath,shixunfilepathplay=_this$state8.shixunfilepathplay,shixunfileexpectpicturepath=_this$state8.shixunfileexpectpicturepath,shixunfilestandardpicturepath=_this$state8.shixunfilestandardpicturepath,shixunfilepicturepath=_this$state8.shixunfilepicturepath,pathoptionvalue=_this$state8.pathoptionvalue,scorevalue=_this$state8.scorevalue,markvalue=_this$state8.markvalue,web_route=_this$state8.web_route;var newscorevalue=void 0;if(scorevalue===false){newscorevalue=false;}else{//判断占比
|
||
newscorevalue=true;var sum=0;for(var i=0;i<evaluationlist.length;i++){if(evaluationlist[i].score>100){_this.props.showNotification("测试集的评分占比不能大于100");_this.setState({scoretype:i});return;}sum=sum+evaluationlist[i].score;}if(sum>100||sum<100){_this.props.showNotification("测试集的评分占比之和必须等于100");return;}}if(exec_time===null||exec_time===undefined||exec_time===""){_this.setState({shixunExec_timeType:true});_this.props.scrollToAnchor("exec_timeid");return;}if(isNulltpm(exec_time)){_this.props.showNotification("评测时长,请勿输入空格");_this.setState({shixunExec_timeType:true});_this.props.scrollToAnchor("exec_timeid");return;}if(shixunfilepath===undefined||shixunfilepath===""||shixunfilepath===null){// this.props.showSnackbar("学员任务文件路径为空");
|
||
_this.setState({StudentTaskPapers:true});_this.props.scrollToAnchor("Studenttaskfile");return;}if(shixunfilepathplay===undefined||shixunfilepathplay===""||shixunfilepathplay===null){// this.props.showSnackbar("评测执行文件路径为空");
|
||
_this.setState({StudentTaskDocs:true});_this.props.scrollToAnchor("Benchmarkexecutable");return;}if(evaluationlist.length===0){_this.props.showSnackbar("测试集不能为空");_this.props.scrollToAnchor("Thetestset");return;}var id=_this.props.match.params.shixunId;var checkpointId=_this.state.checkpointId;var url="/shixuns/"+id+"/challenges/"+checkpointId+".json";var newchallenge={path:shixunfilepath,exec_path:shixunfilepathplay,show_type:pathoptionvalue,original_picture_path:pathoptionvalue===-1?undefined:shixunfileexpectpicturepath===undefined?null:shixunfileexpectpicturepath,expect_picture_path:pathoptionvalue===-1?undefined:shixunfilestandardpicturepath===undefined?null:shixunfilestandardpicturepath,picture_path:pathoptionvalue===-1?undefined:shixunfilepicturepath===undefined?null:shixunfilepicturepath,test_set_score:newscorevalue,test_set_average:markvalue,web_route:web_route===null?undefined:web_route,exec_time:exec_time};__WEBPACK_IMPORTED_MODULE_16_axios___default.a.put(url,{tab:1,challenge:newchallenge,test_set:evaluationlist}).then(function(response){_this.props.showNotification(response.data.messages);window.location.href='/shixuns/'+id+'/challenges/'+response.data.challenge_id+'/tab=3';// if(response.data.status===1){
|
||
// window.location.href = "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=3"
|
||
// }
|
||
}).catch(function(error){console.log(error);});};_this.saveselectpath=function(e){_this.setState({selectpath:e.target.value});};_this.updatepath=function(e,name,type){var _this$setState2;_this.setState((_this$setState2={},_defineProperty(_this$setState2,name,e.target.value),_defineProperty(_this$setState2,'pathtype',type),_this$setState2));};_this.oneditevaluationlist=function(newevaluationlist,markvalue){if(markvalue===true){if(100%newevaluationlist.length===0){var sum=100/newevaluationlist.length;for(var i=0;i<newevaluationlist.length;i++){newevaluationlist[i].score=sum;}}else{var _sum=parseInt(100/newevaluationlist.length);for(var i=0;i<newevaluationlist.length;i++){if(i+1!=newevaluationlist.length){newevaluationlist[i].score=_sum;}else{newevaluationlist[i].score=_sum+100%newevaluationlist.length;}}}}return newevaluationlist;};_this.onChangeRadioGroups=function(e){var _this$state9=_this.state,markvalue=_this$state9.markvalue,evaluationlist=_this$state9.evaluationlist;var newevaluationlist=evaluationlist;if(e.target.value===true){newevaluationlist=_this.oneditevaluationlist(newevaluationlist,markvalue);}_this.setState({scorevalue:e.target.value,evaluationlist:newevaluationlist});_this.setevaluationlist(newevaluationlist);};_this.onChangemarkvalue=function(e){var evaluationlist=_this.state.evaluationlist;if(e.target.value===true){var newevaluationlist=evaluationlist;newevaluationlist=_this.oneditevaluationlist(newevaluationlist,e.target.value);_this.setevaluationlist(newevaluationlist);}_this.setState({markvalue:e.target.value});};_this.updatewebroute=function(e){_this.setState({web_route:e.target.value});};_this.gotocheckpoint=function(url){_this.props.history.replace(url);};_this.setexec_time=function(e){if(e.target.value===null||e.target.value===undefined||e.target.value===""||e.target.value.match(/^[ ]*$/)){}else{_this.setState({shixunExec_timeType:false});}_this.setState({exec_time:e.target.value});};_this.state={choice_url:undefined,practice_url:undefined,go_back_url:undefined,task_pass_default:undefined,submit_url:undefined,value:1,evaluationlist:[],shixunId:undefined,power:false,shixunfilepath:undefined,evaluationvisible:false,trees:undefined,path:"",main:[],saveshixunfilepath:undefined,selectpath:undefined,shixunfilepathplay:undefined,shixunfileexpectpicturepath:undefined,shixunfilestandardpicturepath:undefined,shixunfilepicturepath:undefined,pathoptionvalue:-1,showrepositoryurltiptype:false,prev_challenge:undefined,next_challenge:undefined,StudentTaskPapers:false,StudentTaskDocs:false,selectpatharr:[],handpathopt:false,scorevalue:false,markvalue:true,scoretype:undefined,web_route:null,exec_time:undefined};return _this;}_createClass(TPMevaluation,[{key:'componentDidMount',value:function componentDidMount(){var _this2=this;var id=this.props.match.params.shixunId;var checkpointId=this.props.match.params.checkpointId;this.setState({shixunId:id,checkpointId:checkpointId});var newchoice_url="/shixuns/"+id+"/challenges/newquestion";var newpractice_url="/shixuns/"+id+"/challenges/new";var newgo_back_url="/shixuns/"+id+"/challenges";var url="/shixuns/"+id+"/challenges/"+checkpointId+"/edit.json?tab=1";__WEBPACK_IMPORTED_MODULE_16_axios___default.a.get(url).then(function(response){var newprev_challenge=response.data.prev_challenge;var next_challenge=response.data.next_challenge;if(newprev_challenge!=undefined){if(newprev_challenge.st===0){newprev_challenge="/shixuns/"+id+"/challenges/"+newprev_challenge.id+"/editcheckpoint";}else{newprev_challenge="/shixuns/"+id+"/challenges/"+newprev_challenge.id+"/editquestion";}}if(next_challenge!=undefined){if(next_challenge.st===0){next_challenge="/shixuns/"+id+"/challenges/"+next_challenge.id+"/editcheckpoint";}else{next_challenge="/shixuns/"+id+"/challenges/"+next_challenge.id+"/editquestion";}}var newevaluationlist=[];if(response.data.test_sets.length===0){var newlist=[{hidden:0,input:"",output:"",score:100}];newevaluationlist=newlist;}else{newevaluationlist=response.data.test_sets;}_this2.setState({power:response.data.power,evaluationlist:newevaluationlist,shixunfilepath:response.data.path,shixunfilepathplay:response.data.exec_path,pathoptionvalue:response.data.show_type,shixunfileexpectpicturepath:response.data.original_picture_path,shixunfilestandardpicturepath:response.data.expect_picture_path,shixunfilepicturepath:response.data.picture_path,prev_challenge:newprev_challenge,next_challenge:next_challenge,choice_url:newchoice_url,// 导航中的新建选择题url
|
||
practice_url:newpractice_url,//string 导航中新建实践题url
|
||
go_back_url:newgo_back_url,//string 导航中的返回url
|
||
position:response.data.position,//int 关卡位置,导航栏中的第几关
|
||
scorevalue:response.data.test_set_score,markvalue:response.data.test_set_average,web_route:response.data.web_route,has_web_route:response.data.has_web_route,responsedata:response.data,exec_time:response.data.exec_time});_this2.evaluationoninputvalueonload();if(response.data.power===false){_this2.props.showNotification("你没有权限修改");}}).catch(function(error){console.log(error);});}// 填写分数百分比
|
||
// 修改测试集的匹配规则
|
||
//选择得分规范
|
||
//均匀比例
|
||
},{key:'render',value:function render(){var _this3=this;var _state=this.state,choice_url=_state.choice_url,practice_url=_state.practice_url,go_back_url=_state.go_back_url,position=_state.position,evaluationlist=_state.evaluationlist,shixunId=_state.shixunId,checkpointId=_state.checkpointId,power=_state.power,shixunfileexpectpicturepath=_state.shixunfileexpectpicturepath,shixunfilestandardpicturepath=_state.shixunfilestandardpicturepath,shixunfilepicturepath=_state.shixunfilepicturepath,shixunfilepath=_state.shixunfilepath,evaluationvisible=_state.evaluationvisible,trees=_state.trees,path=_state.path,main=_state.main,selectpath=_state.selectpath,shixunfilepathplay=_state.shixunfilepathplay,pathoptionvalue=_state.pathoptionvalue,showrepositoryurltiptype=_state.showrepositoryurltiptype,prev_challenge=_state.prev_challenge,next_challenge=_state.next_challenge,StudentTaskPapers=_state.StudentTaskPapers,StudentTaskDocs=_state.StudentTaskDocs,web_route=_state.web_route,scorevalue=_state.scorevalue,markvalue=_state.markvalue,scoretype=_state.scoretype,has_web_route=_state.has_web_route,responsedata=_state.responsedata;var tab1url="/shixuns/"+shixunId+"/challenges/"+checkpointId+"/editcheckpoint";var tab2url="/shixuns/"+shixunId+"/challenges/"+checkpointId+"/tab=2";var tab3url="/shixuns/"+shixunId+"/challenges/"+checkpointId+"/tab=3";// console.log(this.props)
|
||
var radioStyle={display:'block',height:'30px',lineHeight:'30px',marginLeft:'20px'};return __WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_14_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'educontent mt30 mb30'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'TPMchallengesnewtitles edu-back-white clearfix borderbottomf4'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'font-16 task-hide fl TPMtaskName'},'\u7B2C',position,'\u5173\uFF1A',responsedata&&responsedata.st===0?"实践题":responsedata&&responsedata.st===1?"选择题":""),this.props.identity>4||this.props.identity===undefined||this.props.status===2||this.props.status===1?"":__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{href:practice_url===undefined?"":practice_url,className:'fr ml15 mt13'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_button___default.a,{type:'primary',className:'edu-default-btn edu-greenback-btn '},'\u65B0\u589E\u5B9E\u8DF5\u4EFB\u52A1')),this.props.identity>4||this.props.identity===undefined||this.props.status===2||this.props.status===1?"":__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15_react_router_dom__["b" /* Link */],{to:choice_url===undefined?"":choice_url,className:'fr ml15 mt13'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_button___default.a,{type:'primary',className:'edu-default-btn edu-greenback-btn mr5'},'\u65B0\u589E\u9009\u62E9\u9898\u4EFB\u52A1')),next_challenge===undefined?"":__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_button___default.a,{type:'primary',ghost:true,onClick:function onClick(){return _this3.gotocheckpoint(next_challenge);},className:'edu-default-btn edu-greenback-btn mr5 fr ml15 mt13'},'\u4E0B\u4E00\u5173'),prev_challenge===undefined?"":__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_button___default.a,{type:'primary',ghost:true,onClick:function onClick(){return _this3.gotocheckpoint(prev_challenge);},className:'edu-default-btn edu-greenback-btn mr5 fr ml15 mt13'},'\u4E0A\u4E00\u5173')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'challenge_nav clearfix edu-back-white'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('li',null,__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15_react_router_dom__["b" /* Link */],{to:tab1url},'1\u3001\u672C\u5173\u4EFB\u52A1 ')),tab2url===""?"":__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('li',null,' > '),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('li',{className:'active'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15_react_router_dom__["b" /* Link */],{to:tab2url,className:"color-blue"},'2\u3001\u8BC4\u6D4B\u8BBE\u7F6E')),tab3url===""?"":__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('li',null,' > '),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('li',{className:''},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15_react_router_dom__["b" /* Link */],{to:tab3url},' 3\u3001\u53C2\u8003\u7B54\u6848'))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-orange-tip font-14 padding10 edu-back-white text-centers'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:"bor25510211"},'\u8BF7\u5148\u4E0A\u4F20\u672C\u5173\u4EFB\u52A1\u7684\u6240\u6709\u4EE3\u7801\u6587\u4EF6\u3001\u6807\u51C6\u56FE\u7247\u7B49\u6240\u6709\u5FC5\u8981\u7684\u6587\u4EF6\u5230',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{href:"/shixuns/"+shixunId+"/repository",className:'color-bule-tip decoration',target:'_blank'},'\u7248\u672C\u5E93'))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white newpadding02020',id:"exec_timeid"},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 mb20'},' ',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'color-red mr5 fl'},'*'),' \u8BC4\u6D4B\u65F6\u957F\u9650\u5236',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u7A0B\u5E8F\u8BC4\u6D4B\u8FD0\u884C\u65F6\u95F4\u9650\u5236\u65F6\u957F\uFF0C\u5355\u4F4D\uFF1A\u79D2\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'clearfix mb5'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'pr status_con',style:{'width':'233px'}},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_input___default.a,{value:this.state.exec_time,className:this.state.shixunExec_timeType===true?"panel-box-sizing task-form-100 task-height-40 bor-red":"panel-box-sizing task-form-100 task-height-40",placeholder:'\u8BF7\u8F93\u5165\u8BC4\u6D4B\u65F6\u957F',onInput:this.setexec_time})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:this.state.shixunExec_timeType===true?"color-red mt8 block ml5":" none",id:'new_shixun_name'},'\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A'))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding1020tpms mb10'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 mb20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'color-red mr5 fl'},'*'),' \u8BC4\u6D4B\u6548\u679C\u5C55\u73B0\u65B9\u5F0F',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u5B66\u5458\u8BC4\u6D4B\u672C\u5173\u4EFB\u52A1\u65F6\uFF0C\u67E5\u770B\u6548\u679C\u9875\u4E0A\u9700\u8981\u5C55\u73B0\u7684\u6587\u4EF6\u7C7B\u578B\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'pr'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13_antd_lib_select___default.a,{className:'winput-240-40',value:pathoptionvalue,onChange:this.handpathoptionvalue},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(Option,{value:-1},'\u65E0'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(Option,{value:1},'\u56FE\u7247'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(Option,{value:2},'apk/exe'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(Option,{value:3},'txt'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(Option,{value:4},'html'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(Option,{value:5},'mp3'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(Option,{value:6},'mp4')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{className:'ml10',onClick:function onClick(){return _this3.showrepositoryurltip(1);}},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_18_educoder__["M" /* getImageUrl */])("images/educoder/problem.png")})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'invite-tip clearfix repository_url_tippostion',style:{display:showrepositoryurltiptype===true?"block":"none"},id:'repository_url_tip'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'top-black-trangleft'}),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding20 invitecontent clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'font-12 edu-txt-left'},'\u56FE\u7247\uFF1A\u5904\u7406\u6216\u8F93\u51FA\u56FE\u7247\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E\u56FE\u7247\u8DEF\u5F84\u548C\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5C55\u793A\u4EE3\u7801\u5BF9\u5E94\u7684\u56FE\u7247\u6548\u679C',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'apk/exe\uFF1A\u5199\u53EF\u6267\u884C\u6587\u4EF6\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5C55\u793A\u4E8C\u7EF4\u7801\u4EE5\u4F9B\u626B\u7801\u4E0B\u8F7D',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'txt\uFF1A\u8F93\u51FAtxt\u6587\u6863\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'\u53EF\u4EE5\u901A\u8FC7\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\u8BBE\u7F6E\uFF0C\u5C55\u793Atxt\u6587\u4EF6\u5185\u5BB9',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'html\uFF1Aweb\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'\u53EF\u4EE5\u901A\u8FC7Web\u8DEF\u7531\u8BBE\u7F6E\uFF0C\u5C55\u793Ahtml\u6548\u679C\u9884\u89C8\u9875',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'mp3/mp4\uFF1Amp3/mp4\u6587\u4EF6\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),'\u53EF\u4EE5\u901A\u8FC7\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\u8BBE\u7F6E\uFF0C\u5C55\u793Amp3/mp4\u6587\u4EF6\u5185\u5BB9',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('br',null))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'inviteTipbtn with100'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{onClick:function onClick(){return _this3.showrepositoryurltip(2);}},'\u77E5\u9053\u4E86')))))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding1020tpms mb10',id:"Studenttaskfile"},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 mb20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'color-red mr5 fl'},'*'),' \u5B66\u5458\u4EFB\u52A1\u6587\u4EF6',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u8BE5\u6587\u4EF6\u5C06\u76F4\u63A5\u663E\u793A\u7ED9\u5B66\u751F\uFF0C\u9700\u8981\u5B66\u751F\u5728\u5176\u4E2D\u586B\u5199\u4EE3\u7801\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'flex1'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('input',{type:'text',className:StudentTaskPapers===true?"input-100-45 greyInput change bor-red":"input-100-45 greyInput change",id:'shixun_file_path',name:'challenge[path]',autoComplete:'off',placeholder:'\u8BF7\u9009\u62E9\u7248\u672C\u5E93\u4E2D\u7684\u4EE3\u7801\u6587\u4EF6\u3002\u4F8B\uFF1A src/step1/HelloWorld.java',value:shixunfilepath,style:{width:StudentTaskPapers===true?'100%':""},onInput:function onInput(e){return _this3.updatepath(e,"shixunfilepath",1);},onClick:function onClick(e){return _this3.getfilepath(e,"shixunfilepath",1);}})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:StudentTaskPapers===true?"color-red mt8 fl":" none",id:'student_task_name'},' \u5FC5\u9009\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A'))))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_modal___default.a,{keyboard:false,title:'\u6587\u4EF6\u8DEF\u5F84',visible:evaluationvisible,closable:false,footer:false},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'task_popup_con'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'newupload_conbox clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('ul',{id:'directory_file'},main.length===0?"":main.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{className:'f14 fb',onClick:function onClick(){return _this3.goblakepath(item.path,key,item);}},item.val);}),trees===undefined||trees===null?"":trees.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('li',{className:'entry',key:key},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'filename_no_report hidden'},item.type==="tree"?__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{onClick:function onClick(){return _this3.sendgetfilepath(item.name,item.type,path+item.name);},'data-remote':'true'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('i',{className:'iconfont icon-wenjianjia color-blue mr2'}),path+item.name):__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{'data-remote':'true'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('i',{className:'iconfont icon-zuoye color-blue mr2'}),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{onClick:function onClick(){return _this3.savegetfilepath(path+item.name,item.type);}},path+item.name))));})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'clearfix mt20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('label',{className:'fl mt5 directory_filepath'},'\u9009\u4E2D\u7684\u6587\u4EF6\u8DEF\u5F84\uFF1A'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_input___default.a,{id:'points_tusi',placeholder:'\u9009\u4E2D\u7684\u6587\u4EF6\u8DEF\u5F84',className:'fl input-60-40',style:{width:"400px"},onInput:function onInput(e){return _this3.saveselectpath(e);},value:selectpath})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{className:'task-btn task-btn-orange fr',style:{marginTop:'20px',marginLeft:'20px'},id:'add_path',onClick:function onClick(){return _this3.evaluationenter();}},'\u786E\u5B9A'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('a',{className:'pop_close task-btn mb10 fr',style:{marginTop:'20px'},id:'back_page',onClick:function onClick(){return _this3.evaluationhideModal();}},'\u53D6\u6D88')))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding1020tpms mb10',id:"Benchmarkexecutable"},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 mb20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'color-red mr5 fl'},'*'),'\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u82E5\u6267\u884C\u5E73\u53F0\u811A\u672C\uFF0C\u8BF7\u8F93\u5165\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u8DEF\u5F84\uFF1B\u82E5\u4F7F\u7528\u81EA\u5DF1\u8BBE\u8BA1\u7684\u811A\u672C\u6D4B\u8BD5\u5B66\u751F\u4EE3\u7801\uFF0C\u8BF7\u8F93\u5165\u8BBE\u8BA1\u7684\u811A\u672C\u6587\u4EF6\u8DEF\u5F84\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'flex1'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('input',{type:'text',className:StudentTaskDocs===true?"bor-red input-100-45 greyInput":"input-100-45 greyInput",id:'shixun_file_path_play',name:'challenge[exec_path]',autoComplete:'off',placeholder:'\u8BF7\u9009\u62E9\u7248\u672C\u5E93\u4E2D\u7684\u4EE3\u7801\u6587\u4EF6\u3002\u4F8B\uFF1Asrc/step1/HelloWorldTest.java',value:shixunfilepathplay,style:{width:StudentTaskDocs===true?'100%':""},onInput:function onInput(e){return _this3.updatepath(e,"shixunfilepathplay",1);},onClick:function onClick(e){return _this3.getfilepath(e,"shixunfilepathplay",1);}})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:StudentTaskDocs===true?"color-red mt8 fl":"none",id:'student_task_name'},'\u5FC5\u9009\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A'))))),pathoptionvalue===4&&web_route!=null||pathoptionvalue===4&&has_web_route===true?__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding1020tpms mb10'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 mb20'},'Web\u8DEF\u7531',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308080\u7AEF\u53E3\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'df'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'flex1 mr20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('input',{type:'text',className:'input-100-45 change',autoComplete:'off',id:'shixun_file_picture_path',name:'challenge[picture_path]',value:web_route,onInput:function onInput(e){return _this3.updatewebroute(e);},placeholder:'\u7F51\u7AD9\u7C7B\u578B\u5B9E\u8BAD\uFF0C\u8BF7\u586B\u5199Web\u8DEF\u7531\u5730\u5740\u3002\u4F8B\uFF1Ajava/mypage'}))))):"",pathoptionvalue===1||pathoptionvalue===5||pathoptionvalue===6?__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding1020tpms mb10'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 mb20'},'\u5F85\u5904\u7406\u6587\u4EF6\u8DEF\u5F84',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u8BE5\u8DEF\u5F84\u4E0B\u7684\u6587\u4EF6\u5C06\u5728\u5B66\u5458\u8BC4\u6D4B\u672C\u5173\u4EFB\u52A1\u65F6\uFF0C\u4F5C\u4E3A\u539F\u59CB\u6587\u4EF6\u663E\u793A\u5728\u67E5\u770B\u6548\u679C\u9875\uFF0C\u4F9B\u5B66\u5458\u53C2\u8003\uFF1B\u8BF7\u6CE8\u610F\u4E0E\u7A0B\u5E8F\u6587\u4EF6\u6240\u5728\u6587\u4EF6\u5939\u5206\u5F00\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'df'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'flex1 mr20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('input',{type:'text',className:'input-100-45',autoComplete:'off',id:'shixun_file_expect_picture_path',name:'challenge[original_picture_path]',placeholder:'\u8BF7\u9009\u62E9\u7248\u672C\u5E93\u4E2D\u5B58\u50A8\u4E86\u5F85\u5904\u7406\u6587\u4EF6(\u56FE\u7247/MP3\u7B49)\u7684\u8DEF\u5F84\u3002\u4F8B\uFF1Asrc/step1/sourcefiles',value:shixunfileexpectpicturepath,onInput:function onInput(e){return _this3.updatepath(e,"shixunfileexpectpicturepath",2);},onClick:function onClick(e){return _this3.getfilepath(e,"shixunfileexpectpicturepath",2);}})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',null)))):"",pathoptionvalue===1||pathoptionvalue===5||pathoptionvalue===6?__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding1020tpms mb10'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 mb20'},'\u6807\u51C6\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u8BE5\u8DEF\u5F84\u4E0B\u7684\u6587\u4EF6\u5C06\u5728\u5B66\u5458\u8BC4\u6D4B\u672C\u5173\u4EFB\u52A1\u65F6\uFF0C\u4F5C\u4E3A\u53C2\u8003\u7B54\u6848\u663E\u793A\u5728\u67E5\u770B\u6548\u679C\u9875\uFF0C\u4F9B\u5B66\u5458\u53C2\u8003\uFF1B\u8BF7\u6CE8\u610F\u4E0E\u7A0B\u5E8F\u6587\u4EF6\u6240\u5728\u6587\u4EF6\u5939\u5206\u5F00\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'df'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'flex1 mr20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('input',{type:'text',className:'input-100-45',autoComplete:'off',id:'shixun_file_standard_picture_path',name:'challenge[expect_picture_path]',placeholder:'\u8BF7\u9009\u62E9\u7248\u672C\u5E93\u4E2D\u5B58\u50A8\u4E86\u6807\u51C6\u7B54\u6848\u6587\u4EF6(\u56FE\u7247/MP3\u7B49)\u7684\u8DEF\u5F84\u3002\u4F8B\uFF1Asrc/step1/expectedfiles',value:shixunfilestandardpicturepath,onInput:function onInput(e){return _this3.updatepath(e,"shixunfilestandardpicturepath",2);},onClick:function onClick(e){return _this3.getfilepath(e,"shixunfilestandardpicturepath",2);}})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',null)))):"",pathoptionvalue===-1?"":__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white clearfix'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding1020tpms mb10'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 mb20'},'\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u5B66\u5458\u8BC4\u6D4B\u672C\u5173\u4EFB\u52A1\u65F6\u751F\u6210\u7684\u6587\u4EF6\u5C06\u4FDD\u5B58\u5728\u8BE5\u8DEF\u5F84\u4E0B\uFF0C\u5E76\u4F5C\u4E3A\u5B9E\u9645\u8F93\u51FA\u663E\u793A\u5728\u67E5\u770B\u6548\u679C\u9875\uFF0C\u4F9B\u5B66\u5458\u786E\u8BA4\uFF1B\u8BF7\u6CE8\u610F\u4E0E\u7A0B\u5E8F\u6587\u4EF6\u6240\u5728\u6587\u4EF6\u5939\u5206\u5F00\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'df'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'flex1 mr20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('input',{type:'text',className:'input-100-45 change',autoComplete:'off',id:'shixun_file_picture_path',name:'challenge[picture_path]',value:shixunfilepicturepath,onInput:function onInput(e){return _this3.updatepath(e,"shixunfilepicturepath",2);},onClick:function onClick(e){return _this3.getfilepath(e,"shixunfilepicturepath",2);},placeholder:'\u8BF7\u5728\u7248\u672C\u5E93\u4E2D\u6307\u5B9A\u7528\u6765\u4FDD\u5B58\u5B66\u5458\u4EE3\u7801\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\u7684\u8DEF\u5F84\u3002\u4F8B\uFF1Asrc/step1/outputfiles'})),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',null)))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'edu-back-white clearfix',id:"Thetestset"},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'padding1020tpms mb20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-6 font-16 height40pxtpm borbottomeeetpm'},'\u6D4B\u8BD5\u96C6\u548C\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-9 mt20',style:{width:'100%',height:'60px'}},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"headdfgf color979797"},'\u5F97\u5206\u89C4\u8303\uFF1A'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(RadioGroup,{className:"fl",value:scorevalue,onChange:this.onChangeRadioGroups},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_antd_lib_radio___default.a,{style:radioStyle,value:false},'\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color979797"},'\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_antd_lib_radio___default.a,{style:radioStyle,value:true},'\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color979797"},'\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u5F53\u81F3\u5C11\u6709\u4E00\u7EC4\u6D4B\u8BD5\u96C6\u6B63\u786E\u65F6\uFF0C\u5373\u53EF\u83B7\u5F97\u5176\u5BF9\u5E94\u6BD4\u4F8B\u7684\u5956\u52B1\uFF09')))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-9 mb20',style:{width:'100%',height:'20px',display:scorevalue===true?'block':'none'}},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"headdfgf color979797",style:{width:'500px'}},'\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4\uFF1A',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(RadioGroup,{value:markvalue,onChange:this.onChangemarkvalue},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_antd_lib_radio___default.a,{value:true},'\u5747\u5206\u6BD4\u4F8B'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_antd_lib_radio___default.a,{value:false},'\u81EA\u5B9A\u4E49\u6BD4\u4F8B')))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'flex1 mr20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{id:'test_array_set'},evaluationlist===undefined?"":evaluationlist.length===0?"":evaluationlist.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'test_array_item mt30 borbottomeeetpm pb20',key:key},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'clearfix pr mb20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'fl mr10 color-red'},'*'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'color-blue font-16 fl',name:'sample_inputs_label'},'\u7EC4',key+1),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'fl ml20 color-grey-6'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('input',{className:scoretype===key?"bor-red fl martopf4":"fl martopf4",style:{width:'25%',display:scorevalue===true?'inline-block':'none'},onInput:function onInput(e){return _this3.editpercentage(e,key);},value:item.score}),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'mr15 ml10',style:{display:scorevalue===true?'inline-block':'none'}},'%'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox___default.a,{onChange:function onChange(){return _this3.evaluationonChange(item.hidden,key);},checked:item.hidden===1?true:false},'\u9690\u85CF',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u9009\u4E2D\u5219\u5BF9\u5B66\u5458\u9690\u85CF\u672C\u6D4B\u8BD5\u96C6\u5185\u5BB9\uFF09'))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default.a,{placement:'bottom',title:"删除"},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'fr sample_icon_remove ',style:{display:key===0?"none":"block"},onClick:function onClick(){return _this3.del_test_array(key);}},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('i',{className:"iconfont icon-shanchu_Hover font-16 fl"})))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(TextArea,{className:'textareavalue mb15',name:'test_set[input][]',placeholder:'\u8F93\u5165',value:item.input,id:"textareavalue"+key// autoHeight="true"
|
||
,rows:3,onInput:function onInput(e){return _this3.evaluationoninputvalue(e,key,"sr");}}),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(TextArea,{className:'textareavalue',name:'test_set[output][]',placeholder:'\u9884\u671F\u8F93\u51FA',value:item.output,id:key+"textareavalue"// autoHeight="true"
|
||
,rows:5,onInput:function onInput(e){return _this3.evaluationoninputvalue(e,key,"yq");}}),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'clearfix lineh-30 mt20'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:'fl mr10 color-grey-6'},'\u5339\u914D\u89C4\u5219\uFF1A'),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(RadioGroup,{className:'fl',value:item.match_rule,onChange:function onChange(e){return _this3.changeEvaluationRule(e,key);}},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_antd_lib_radio___default.a,{value:'full'},'\u5B8C\u5168\u5339\u914D',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u5B8C\u5168\u76F8\u540C\uFF09')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_antd_lib_radio___default.a,{value:'last'},'\u672B\u5C3E\u5339\u914D',__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('span',{className:"color-grey-8 font-14"},'\uFF08\u5B9E\u9645\u8F93\u51FA\u7684\u672B\u5C3E\u5185\u5BB9\u4E0E\u9884\u671F\u8F93\u51FA\u5B8C\u5168\u76F8\u540C\uFF09')))));}))),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'clearfix',onClick:this.addevaluationon},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_button___default.a,{type:'primary',ghost:true,className:'edu-default-btn edu-greenback-btn mt20 mb20'},'\u65B0\u589E\u6D4B\u8BD5\u96C6')),__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('p',{className:'color-grey-9'},'\u6E29\u99A8\u63D0\u793A\uFF1A\u516C\u5F00\u6D4B\u8BD5\u96C6\u548C\u9690\u85CF\u6D4B\u8BD5\u96C6\u7ED3\u5408\u4F7F\u7528\uFF0C\u53EF\u4EE5\u964D\u4F4E\u4F5C\u5F0A\u7684\u51E0\u7387\uFF1B\u9690\u85CF\u6D4B\u8BD5\u96C6\uFF0C\u5728\u201C\u63D0\u4EA4\u8BC4\u6D4B\u201D\u65F6\u4E5F\u5C06\u88AB\u7CFB\u7EDF\u81EA\u52A8\u68C0\u6D4B'))))),this.props.identity>4||this.props.identity===undefined||power===false?"":__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement('div',{className:'clearfix mt30'},__WEBPACK_IMPORTED_MODULE_14_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_17__modals_Bottomsubmit__["a" /* default */],Object.assign({url:"/shixuns/"+shixunId+"/challenges",bottomvalue:"提交",onSubmits:this.submitarbitrationevaluation},this.props,this.state,{loadings:false}))));}}]);return TPMevaluation;}(__WEBPACK_IMPORTED_MODULE_14_react__["Component"]);/* harmony default export */ __webpack_exports__["default"] = (TPMevaluation);
|
||
|
||
/***/ })
|
||
|
||
}); |