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="/s
|
|||
|
});}}).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:respo
|
|||
|
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___d
|
|||
|
,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);
|
|||
|
|
|||
|
/***/ })
|
|||
|
|
|||
|
});
|