You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/public/react/dist/static/js/234.16507288.chunk.js

1 line
31 KiB

(this.webpackJsonph5=this.webpackJsonph5||[]).push([[234],{2379:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return C})),a(259);var l=a(167),n=(a(260),a(92)),s=(a(50),a(29)),i=(a(131),a(39)),r=a(30),c=a(8),o=a(7),u=a(10),p=a(9),m=a(11),h=(a(103),a(47)),d=(a(470),a(462)),v=(a(472),a(471)),f=a(0),g=a.n(f),E=a(74),x=a(6),b=a.n(x),_=a(998),y=a(28),N=(a(277),window.$),k=v.a.Option,w=d.a.Group,S=h.a.TextArea,C=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(u.a)(this,Object(p.a)(t).call(this,e))).setevaluationlist=function(e){a.setState({evaluationlist:e})},a.addevaluationon=function(){var e=a.state,t=e.evaluationlist,l=e.markvalue,n=t;n.push({hidden:0,input:"",output:"",score:0,match_rule:"full"}),n=a.oneditevaluationlist(n,l),a.setevaluationlist(n)},a.del_test_array=function(e){var t=a.state,l=t.evaluationlist,n=t.markvalue,s=l;s.splice(e,1),s=a.oneditevaluationlist(s,n),a.setevaluationlist(s)},a.getfilepath=function(e,t,l){a.setState({evaluationvisible:!0,selectpath:e.target.value,selectpatharr:[],pathtype:l});var n="/shixuns/"+a.props.match.params.shixunId+"/repository.json";b.a.post(n,{path:""}).then((function(e){403===e.data.status||401===e.data.status||500===e.data.status||a.setState({trees:e.data.trees,saveshixunfilepath:t,path:"",main:[]})})).catch((function(e){}))},a.sendgetfilepath=function(e,t,l){var n=a.props.match.params.shixunId,s=a.state,i=s.path,r=s.main,c=s.pathtype,o=r,u=i;a.setState({selectpatharr:[]}),""===u&&"tree"===t?(e+="/",u="",0===r.length?o.push({val:"\u6839\u76ee\u5f55/",path:""},{val:e,path:u+e}):o.push({val:e,path:u+e})):""!=u&&"tree"===t&&(e+="/",o.push({val:e,path:u+e}));var p="/shixuns/"+n+"/repository.json";"tree"===t&&b.a.post(p,{path:u+e}).then((function(t){403===t.data.status||401===t.data.status||500===t.data.status||a.setState({trees:t.data.trees,path:u+e,main:o})})).catch((function(e){})),2===c&&a.setState({selectpath:l})},a.goblakepath=function(e,t){for(var l=a.state,n=l.main,s=(l.selectpath,l.pathtype),i=[],r=0;r<=t;r++)i.push(n[r]);var c="/shixuns/"+a.props.match.params.shixunId+"/repository.json";if(b.a.post(c,{path:e}).then((function(t){403===t.data.status||401===t.data.status||500===t.data.status||a.setState({trees:t.data.trees,path:e,main:i})})).catch((function(e){})),2===s){var o=e.substring(0,e.length-1);a.setState({selectpath:o})}},a.savegetfilepath=function(e){var t=a.state,l=t.selectpath,n=t.saveshixunfilepath;if(1===t.pathtype){var s;if("shixunfilepathplay"===n)s=e;else{for(var i=l.split("\uff1b"),r=!1,c=0;c<i.length;c++)if(i[c]===e)return void(r=!0);s=!1===r?l+e+"\uff1b":l}a.setState({selectpath:s})}},a.evaluationenter=function(){var e=a.state,t=e.saveshixunfilepath,l=e.selectpath;a.setState(Object(r.a)({evaluationvisible:!1},t,l))},a.evaluationhideModal=function(){a.setState({evaluationvisible:!1})},a.handpathoptionvalue=function(e){a.setState({pathoptionvalue:e,shixunfileexpectpicturepath:void 0,shixunfilestandardpicturepath:void 0,shixunfilepicturepath:void 0})},a.showrepositoryurltip=function(e){1===e?a.setState({showrepositoryurltiptype:!0}):a.setState({showrepositoryurltiptype:!1})},a.evaluationonChange=function(e,t){var l,n=a.state.evaluationlist;l=1===e?0:1,n[t].hidden=l,a.setState({evaluationlist:n}),a.setevaluationlist(n)},a.editpercentage=function(e,t){var l=a.state,n=l.evaluationlist;l.scoretype===t&&a.setState({scoretype:void 0});var s=n,i=parseInt(e.target.value);isNaN(i)&&(i=0),s[t].score=i,a.setState({evaluationlist:s,markvalue:!1}),a.setevaluationlist(s)},a.changeEvaluationRule=function(e,t){var l=a.state.evaluationlist;l[t].match_rule=e.target.value,a.setevaluationlist(l)},a.evaluationoninputvalue=function(e,t,l){N.fn.autoHeight=function(){function e(e){e.style.height="auto",e.style.maxHeight="140px",e.scrollTop=0,e.style.height=e.scrollHeight+"px"}this.each((function(){e(this),N(this).on("keyup",(function(){e(this)}))}))},N("textarea[autoHeight]").autoHeight();var n=a.state.evaluationlist;"sr"===l?n[t].input=e.target.value:"yq"===l&&(n[t].output=e.target.value?e.target.value.replace(/\r?\n/g,"\r\n"):e.target.value),a.setevaluationlist(n)},a.evaluationoninputvalueonload=function(){N.fn.autoHeight=function(){function e(e){e.style.height="auto",e.style.maxHeight="140px",e.scrollTop=0,e.style.height=e.scrollHeight+"px"}this.each((function(){e(this),N(this).on("keyup",(function(){e(this)}))}))},N("textarea[autoHeight]").autoHeight()},a.submitarbitrationevaluation=function(){var e,t,l=a.state,n=l.exec_time,s=l.evaluationlist,i=l.shixunfilepath,r=l.shixunfilepathplay,c=l.shixunfileexpectpicturepath,o=l.shixunfilestandardpicturepath,u=l.shixunfilepicturepath,p=l.pathoptionvalue,m=l.scorevalue,h=l.markvalue,d=l.web_route;if(!1===m)e=!1;else{e=!0;for(var v=0,f=0;f<s.length;f++){if(100<s[f].score)return a.props.showNotification("\u6d4b\u8bd5\u96c6\u7684\u8bc4\u5206\u5360\u6bd4\u4e0d\u80fd\u5927\u4e8e100"),void a.setState({scoretype:f});v+=s[f].score}if(100<v||v<100)return void a.props.showNotification("\u6d4b\u8bd5\u96c6\u7684\u8bc4\u5206\u5360\u6bd4\u4e4b\u548c\u5fc5\u987b\u7b49\u4e8e100")}if(null==n||""===n)return a.setState({shixunExec_timeType:!0}),void a.props.scrollToAnchor("exec_timeid");if(""==(t=n)||new RegExp("^[ ]+$").test(t))return a.props.showNotification("\u8bc4\u6d4b\u65f6\u957f\uff0c\u8bf7\u52ff\u8f93\u5165\u7a7a\u683c"),a.setState({shixunExec_timeType:!0}),void a.props.scrollToAnchor("exec_timeid");if(void 0===i||""===i||null===i)return a.setState({StudentTaskPapers:!0}),void a.props.scrollToAnchor("Studenttaskfile");if(void 0===r||""===r||null===r)return a.setState({StudentTaskDocs:!0}),void a.props.scrollToAnchor("Benchmarkexecutable");if(0===s.length)return a.props.showSnackbar("\u6d4b\u8bd5\u96c6\u4e0d\u80fd\u4e3a\u7a7a"),void a.props.scrollToAnchor("Thetestset");var g=a.props.match.params.shixunId,E=a.state.checkpointId,x="/shixuns/"+g+"/challenges/"+E+".json",_={path:i,exec_path:r,show_type:p,original_picture_path:-1===p?void 0:void 0===c?null:c,expect_picture_path:-1===p?void 0:void 0===o?null:o,picture_path:-1===p?void 0:void 0===u?null:u,test_set_score:e,test_set_average:h,web_route:null===d?void 0:d,exec_time:n};b.a.put(x,{tab:1,challenge:_,test_set:s}).then((function(e){a.props.showNotification(e.data.messages),window.location.href="/shixuns/".concat(g,"/challenges/").concat(e.data.challenge_id,"/tab=3")})).catch((function(e){}))},a.saveselectpath=function(e){a.setState({selectpath:e.target.value})},a.updatepath=function(e,t,l){var n;a.setState((n={},Object(r.a)(n,t,e.target.value),Object(r.a)(n,"pathtype",l),n))},a.oneditevaluationlist=function(e,t){if(!0===t)if(100%e.length==0)for(var a=100/e.length,l=0;l<e.length;l++)e[l].score=a;else{var n=parseInt(100/e.length);for(l=0;l<e.length;l++)l+1!=e.length?e[l].score=n:e[l].score=n+100%e.length}return e},a.onChangeRadioGroups=function(e){var t=a.state,l=t.markvalue,n=t.evaluationlist;!0===e.target.value&&(n=a.oneditevaluationlist(n,l)),a.setState({scorevalue:e.target.value,evaluationlist:n}),a.setevaluationlist(n)},a.onChangemarkvalue=function(e){var t=a.state.evaluationlist;if(!0===e.target.value){var l=t;l=a.oneditevaluationlist(l,e.target.value),a.setevaluationlist(l)}a.setState({markvalue:e.target.value})},a.updatewebroute=function(e){a.setState({web_route:e.target.value})},a.gotocheckpoint=function(e){a.props.history.replace(e)},a.setexec_time=function(e){null===e.target.value||void 0===e.target.value||""===e.target.value||e.target.value.match(/^[ ]*$/)||a.setState({shixunExec_timeType:!1}),a.setState({exec_time:e.target.value})},a.state={choice_url:void 0,practice_url:void 0,go_back_url:void 0,task_pass_default:void 0,submit_url:void 0,value:1,evaluationlist:[],shixunId:void 0,power:!1,shixunfilepath:void 0,evaluationvisible:!1,trees:void 0,path:"",main:[],saveshixunfilepath:void 0,selectpath:void 0,shixunfilepathplay:void 0,shixunfileexpectpicturepath:void 0,shixunfilestandardpicturepath:void 0,shixunfilepicturepath:void 0,pathoptionvalue:-1,showrepositoryurltiptype:!1,prev_challenge:void 0,next_challenge:void 0,StudentTaskPapers:!1,StudentTaskDocs:!1,selectpatharr:[],handpathopt:!1,scorevalue:!1,markvalue:!0,scoretype:void 0,web_route:null,exec_time:void 0},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.match.params.shixunId,a=this.props.match.params.checkpointId;this.setState({shixunId:t,checkpointId:a});var l="/shixuns/"+t+"/challenges/newquestion",n="/shixuns/"+t+"/challenges/new",s="/shixuns/"+t+"/challenges",i="/shixuns/"+t+"/challenges/"+a+"/edit.json?tab=1";b.a.get(i).then((function(a){var i=a.data.prev_challenge,r=a.data.next_challenge;null!=i&&(i=0===i.st?"/shixuns/"+t+"/challenges/"+i.id+"/editcheckpoint":"/shixuns/"+t+"/challenges/"+i.id+"/editquestion"),null!=r&&(r=0===r.st?"/shixuns/"+t+"/challenges/"+r.id+"/editcheckpoint":"/shixuns/"+t+"/challenges/"+r.id+"/editquestion");var c=[];c=0===a.data.test_sets.length?[{hidden:0,input:"",output:"",score:100}]:a.data.test_sets,e.setState({power:a.data.power,evaluationlist:c,shixunfilepath:a.data.path,shixunfilepathplay:a.data.exec_path,pathoptionvalue:a.data.show_type,shixunfileexpectpicturepath:a.data.original_picture_path,shixunfilestandardpicturepath:a.data.expect_picture_path,shixunfilepicturepath:a.data.picture_path,prev_challenge:i,next_challenge:r,choice_url:l,practice_url:n,go_back_url:s,position:a.data.position,scorevalue:a.data.test_set_score,markvalue:a.data.test_set_average,web_route:a.data.web_route,has_web_route:a.data.has_web_route,responsedata:a.data,exec_time:a.data.exec_time}),e.evaluationoninputvalueonload(),!1===a.data.power&&e.props.showNotification("\u4f60\u6ca1\u6709\u6743\u9650\u4fee\u6539")})).catch((function(e){}))}},{key:"render",value:function(){var e=this,t=this.state,a=t.choice_url,r=t.practice_url,c=(t.go_back_url,t.position),o=t.evaluationlist,u=t.shixunId,p=t.checkpointId,m=t.power,f=t.shixunfileexpectpicturepath,x=t.shixunfilestandardpicturepath,b=t.shixunfilepicturepath,N=t.shixunfilepath,C=t.evaluationvisible,I=t.trees,T=t.path,j=t.main,H=t.selectpath,O=t.shixunfilepathplay,M=t.pathoptionvalue,P=t.showrepositoryurltiptype,A=t.prev_challenge,q=t.next_challenge,R=t.StudentTaskPapers,W=t.StudentTaskDocs,D=t.web_route,z=t.scorevalue,G=t.markvalue,L=t.scoretype,$=t.has_web_route,B=t.responsedata,J="/shixuns/"+u+"/challenges/"+p+"/editcheckpoint",F="/shixuns/"+u+"/challenges/"+p+"/tab=2",K="/shixuns/"+u+"/challenges/"+p+"/tab=3",Q={display:"block",height:"30px",lineHeight:"30px",marginLeft:"20px"};return g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"educontent mt30 mb30"},g.a.createElement("div",{className:"TPMchallengesnewtitles edu-back-white clearfix borderbottomf4"},g.a.createElement("span",{className:"font-16 task-hide fl TPMtaskName"},"\u7b2c",c,"\u5173\uff1a",B&&0===B.st?"\u5b9e\u8df5\u9898":B&&1===B.st?"\u9009\u62e9\u9898":""),4<this.props.identity||void 0===this.props.identity||2===this.props.status||1===this.props.status?"":g.a.createElement("a",{href:void 0===r?"":r,className:"fr ml15 mt13"},g.a.createElement(i.a,{type:"primary",className:"edu-default-btn edu-greenback-btn "},"\u65b0\u589e\u5b9e\u8df5\u4efb\u52a1")),4<this.props.identity||void 0===this.props.identity||2===this.props.status||1===this.props.status?"":g.a.createElement(E.b,{to:void 0===a?"":a,className:"fr ml15 mt13"},g.a.createElement(i.a,{type:"primary",className:"edu-default-btn edu-greenback-btn mr5"},"\u65b0\u589e\u9009\u62e9\u9898\u4efb\u52a1")),void 0===q?"":g.a.createElement(i.a,{type:"primary",ghost:!0,onClick:function(){return e.gotocheckpoint(q)},className:"edu-default-btn edu-greenback-btn mr5 fr ml15 mt13"},"\u4e0b\u4e00\u5173"),void 0===A?"":g.a.createElement(i.a,{type:"primary",ghost:!0,onClick:function(){return e.gotocheckpoint(A)},className:"edu-default-btn edu-greenback-btn mr5 fr ml15 mt13"},"\u4e0a\u4e00\u5173")),g.a.createElement("div",{className:"challenge_nav clearfix edu-back-white"},g.a.createElement("li",null,g.a.createElement(E.b,{to:J},"1\u3001\u672c\u5173\u4efb\u52a1 ")),F?g.a.createElement("li",null," > "):"",g.a.createElement("li",{className:"active"},g.a.createElement(E.b,{to:F,className:"color-blue"},"2\u3001\u8bc4\u6d4b\u8bbe\u7f6e")),K?g.a.createElement("li",null," > "):"",g.a.createElement("li",{className:""},g.a.createElement(E.b,{to:K}," 3\u3001\u53c2\u8003\u7b54\u6848"))),g.a.createElement("p",{className:"color-orange-tip font-14 padding10 edu-back-white text-centers"},g.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",g.a.createElement("a",{href:"/shixuns/"+u+"/repository",className:"color-bule-tip decoration",target:"_blank"},"\u7248\u672c\u5e93"))),g.a.createElement("div",{className:"edu-back-white newpadding02020",id:"exec_timeid"},g.a.createElement("p",{className:"color-grey-6 font-16 mb20"}," ",g.a.createElement("span",{className:"color-red mr5 fl"},"*")," \u8bc4\u6d4b\u65f6\u957f\u9650\u5236",g.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")),g.a.createElement("div",{className:"clearfix mb5"},g.a.createElement("div",{className:"pr status_con",style:{width:"233px"}},g.a.createElement(h.a,{value:this.state.exec_time,className:!0===this.state.shixunExec_timeType?"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})),g.a.createElement("div",{className:!0===this.state.shixunExec_timeType?"color-red mt8 block ml5":" none",id:"new_shixun_name"},"\u5fc5\u586b\u9879\uff1a\u4e0d\u80fd\u4e3a\u7a7a"))),g.a.createElement("div",{className:"edu-back-white clearfix"},g.a.createElement("div",{className:"padding1020tpms mb10"},g.a.createElement("p",{className:"color-grey-6 font-16 mb20"},g.a.createElement("span",{className:"color-red mr5 fl"},"*")," \u8bc4\u6d4b\u6548\u679c\u5c55\u73b0\u65b9\u5f0f",g.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")),g.a.createElement("div",{className:"pr"},g.a.createElement(v.a,{className:"winput-240-40",value:M,onChange:this.handpathoptionvalue},g.a.createElement(k,{value:-1},"\u65e0"),g.a.createElement(k,{value:1},"\u56fe\u7247"),g.a.createElement(k,{value:2},"apk/exe"),g.a.createElement(k,{value:3},"txt"),g.a.createElement(k,{value:4},"html"),g.a.createElement(k,{value:5},"mp3"),g.a.createElement(k,{value:6},"mp4")),g.a.createElement("a",{className:"ml10",onClick:function(){return e.showrepositoryurltip(1)}},g.a.createElement("img",{src:Object(y.L)("images/educoder/problem.png")})),g.a.createElement("div",{className:"invite-tip clearfix repository_url_tippostion",style:{display:!0===P?"block":"none"},id:"repository_url_tip"},g.a.createElement("span",{className:"top-black-trangleft"}),g.a.createElement("div",{className:"padding20 invitecontent clearfix"},g.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",g.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",g.a.createElement("br",null),g.a.createElement("br",null),"apk/exe\uff1a\u5199\u53ef\u6267\u884c\u6587\u4ef6\u7684\u4efb\u52a1\uff0c\u8bf7\u9009\u586b\u6b64\u9879",g.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",g.a.createElement("br",null),g.a.createElement("br",null),"txt\uff1a\u8f93\u51fatxt\u6587\u6863\u7c7b\u578b\u7684\u4efb\u52a1\uff0c\u8bf7\u9009\u586b\u6b64\u9879",g.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",g.a.createElement("br",null),g.a.createElement("br",null),"html\uff1aweb\u7c7b\u578b\u7684\u4efb\u52a1\uff0c\u8bf7\u9009\u586b\u6b64\u9879",g.a.createElement("br",null),"\u53ef\u4ee5\u901a\u8fc7Web\u8def\u7531\u8bbe\u7f6e\uff0c\u5c55\u793ahtml\u6548\u679c\u9884\u89c8\u9875",g.a.createElement("br",null),g.a.createElement("br",null),"mp3/mp4\uff1amp3/mp4\u6587\u4ef6\u7c7b\u578b\u7684\u4efb\u52a1\uff0c\u8bf7\u9009\u586b\u6b64\u9879",g.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",g.a.createElement("br",null),g.a.createElement("br",null))),g.a.createElement("p",{className:"inviteTipbtn with100"},g.a.createElement("a",{onClick:function(){return e.showrepositoryurltip(2)}},"\u77e5\u9053\u4e86")))))),g.a.createElement("div",{className:"edu-back-white clearfix"},g.a.createElement("div",{className:"padding1020tpms mb10",id:"Studenttaskfile"},g.a.createElement("p",{className:"color-grey-6 font-16 mb20"},g.a.createElement("span",{className:"color-red mr5 fl"},"*")," \u5b66\u5458\u4efb\u52a1\u6587\u4ef6",g.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")),g.a.createElement("div",null,g.a.createElement("div",{className:"flex1"},g.a.createElement("input",{type:"text",className:!0===R?"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:N,style:{width:!0===R?"100%":""},onInput:function(t){return e.updatepath(t,"shixunfilepath",1)},onClick:function(t){return e.getfilepath(t,"shixunfilepath",1)}})),g.a.createElement("div",null,g.a.createElement("span",{className:!0===R?"color-red mt8 fl":" none",id:"student_task_name"}," \u5fc5\u9009\u9879\uff1a\u4e0d\u80fd\u4e3a\u7a7a"))))),g.a.createElement(s.a,{keyboard:!1,title:"\u6587\u4ef6\u8def\u5f84",visible:C,closable:!1,footer:!1},g.a.createElement("div",{className:"task_popup_con"},g.a.createElement("div",{className:"newupload_conbox clearfix"},g.a.createElement("ul",{id:"directory_file"},0===j.length?"":j.map((function(t,a){return g.a.createElement("a",{className:"f14 fb",onClick:function(){return e.goblakepath(t.path,a,t)}},t.val)})),null==I?"":I.map((function(t,a){return g.a.createElement("li",{className:"entry",key:a},g.a.createElement("div",{className:"filename_no_report hidden"},"tree"===t.type?g.a.createElement("a",{onClick:function(){return e.sendgetfilepath(t.name,t.type,T+t.name)},"data-remote":"true"},g.a.createElement("i",{className:"iconfont icon-wenjianjia color-blue mr2"}),T+t.name):g.a.createElement("a",{"data-remote":"true"},g.a.createElement("i",{className:"iconfont icon-zuoye color-blue mr2"}),g.a.createElement("span",{onClick:function(){return e.savegetfilepath(T+t.name,t.type)}},T+t.name))))}))),g.a.createElement("div",{className:"clearfix mt20"},g.a.createElement("label",{className:"fl mt5 directory_filepath"},"\u9009\u4e2d\u7684\u6587\u4ef6\u8def\u5f84\uff1a"),g.a.createElement(h.a,{id:"points_tusi",placeholder:"\u9009\u4e2d\u7684\u6587\u4ef6\u8def\u5f84",className:"fl input-60-40",style:{width:"400px"},onInput:function(t){return e.saveselectpath(t)},value:H})),g.a.createElement("a",{className:"task-btn task-btn-orange fr",style:{marginTop:"20px",marginLeft:"20px"},id:"add_path",onClick:function(){return e.evaluationenter()}},"\u786e\u5b9a"),g.a.createElement("a",{className:"pop_close task-btn mb10 fr",style:{marginTop:"20px"},id:"back_page",onClick:function(){return e.evaluationhideModal()}},"\u53d6\u6d88")))),g.a.createElement("div",{className:"edu-back-white clearfix"},g.a.createElement("div",{className:"padding1020tpms mb10",id:"Benchmarkexecutable"},g.a.createElement("p",{className:"color-grey-6 font-16 mb20"},g.a.createElement("span",{className:"color-red mr5 fl"},"*"),"\u8bc4\u6d4b\u6267\u884c\u6587\u4ef6",g.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")),g.a.createElement("div",null,g.a.createElement("div",{className:"flex1"},g.a.createElement("input",{type:"text",className:!0===W?"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:O,style:{width:!0===W?"100%":""},onInput:function(t){return e.updatepath(t,"shixunfilepathplay",1)},onClick:function(t){return e.getfilepath(t,"shixunfilepathplay",1)}})),g.a.createElement("div",null,g.a.createElement("span",{className:!0===W?"color-red mt8 fl":"none",id:"student_task_name"},"\u5fc5\u9009\u9879\uff1a\u4e0d\u80fd\u4e3a\u7a7a"))))),4===M&&null!=D||4===M&&!0===$?g.a.createElement("div",{className:"edu-back-white clearfix"},g.a.createElement("div",{className:"padding1020tpms mb10"},g.a.createElement("p",{className:"color-grey-6 font-16 mb20"},"Web\u8def\u7531",g.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")),g.a.createElement("div",{className:"df"},g.a.createElement("div",{className:"flex1 mr20"},g.a.createElement("input",{type:"text",className:"input-100-45 change",autoComplete:"off",id:"shixun_file_picture_path",name:"challenge[picture_path]",value:D,onInput:function(t){return e.updatewebroute(t)},placeholder:"\u7f51\u7ad9\u7c7b\u578b\u5b9e\u8bad\uff0c\u8bf7\u586b\u5199Web\u8def\u7531\u5730\u5740\u3002\u4f8b\uff1ajava/mypage"}))))):"",1===M||5===M||6===M?g.a.createElement("div",{className:"edu-back-white clearfix"},g.a.createElement("div",{className:"padding1020tpms mb10"},g.a.createElement("p",{className:"color-grey-6 font-16 mb20"},"\u5f85\u5904\u7406\u6587\u4ef6\u8def\u5f84",g.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")),g.a.createElement("div",{className:"df"},g.a.createElement("div",{className:"flex1 mr20"},g.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:f,onInput:function(t){return e.updatepath(t,"shixunfileexpectpicturepath",2)},onClick:function(t){return e.getfilepath(t,"shixunfileexpectpicturepath",2)}})),g.a.createElement("div",null)))):"",1===M||5===M||6===M?g.a.createElement("div",{className:"edu-back-white clearfix"},g.a.createElement("div",{className:"padding1020tpms mb10"},g.a.createElement("p",{className:"color-grey-6 font-16 mb20"},"\u6807\u51c6\u7b54\u6848\u6587\u4ef6\u8def\u5f84",g.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")),g.a.createElement("div",{className:"df"},g.a.createElement("div",{className:"flex1 mr20"},g.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:x,onInput:function(t){return e.updatepath(t,"shixunfilestandardpicturepath",2)},onClick:function(t){return e.getfilepath(t,"shixunfilestandardpicturepath",2)}})),g.a.createElement("div",null)))):"",-1===M?"":g.a.createElement("div",{className:"edu-back-white clearfix"},g.a.createElement("div",{className:"padding1020tpms mb10"},g.a.createElement("p",{className:"color-grey-6 font-16 mb20"},"\u5b66\u5458\u7b54\u6848\u6587\u4ef6\u8def\u5f84",g.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")),g.a.createElement("div",{className:"df"},g.a.createElement("div",{className:"flex1 mr20"},g.a.createElement("input",{type:"text",className:"input-100-45 change",autoComplete:"off",id:"shixun_file_picture_path",name:"challenge[picture_path]",value:b,onInput:function(t){return e.updatepath(t,"shixunfilepicturepath",2)},onClick:function(t){return e.getfilepath(t,"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"})),g.a.createElement("div",null)))),g.a.createElement("div",{className:"edu-back-white clearfix",id:"Thetestset"},g.a.createElement("div",{className:"padding1020tpms mb20"},g.a.createElement("p",{className:"color-grey-6 font-16 height40pxtpm borbottomeeetpm"},"\u6d4b\u8bd5\u96c6\u548c\u7cfb\u7edf\u8bc4\u5206\u89c4\u5219"),g.a.createElement("p",{className:"color-grey-9 mt20",style:{width:"100%",height:"60px"}},g.a.createElement("span",{className:"headdfgf color979797"},"\u5f97\u5206\u89c4\u8303\uff1a"),g.a.createElement(w,{className:"fl",value:z,onChange:this.onChangeRadioGroups},g.a.createElement(d.a,{style:Q,value:!1},"\u901a\u8fc7\u5168\u90e8\u6d4b\u8bd5\u96c6",g.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")),g.a.createElement(d.a,{style:Q,value:!0},"\u901a\u8fc7\u90e8\u5206\u6d4b\u8bd5\u96c6",g.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")))),g.a.createElement("p",{className:"color-grey-9 mb20",style:{width:"100%",height:"20px",display:!0===z?"block":"none"}},g.a.createElement("span",{className:"headdfgf color979797",style:{width:"500px"}},"\u7cfb\u7edf\u8bc4\u5206\u5360\u6bd4\uff1a",g.a.createElement(w,{value:G,onChange:this.onChangemarkvalue},g.a.createElement(d.a,{value:!0},"\u5747\u5206\u6bd4\u4f8b"),g.a.createElement(d.a,{value:!1},"\u81ea\u5b9a\u4e49\u6bd4\u4f8b")))),g.a.createElement("div",null,g.a.createElement("div",{className:"flex1 mr20"},g.a.createElement("div",{id:"test_array_set"},void 0===o||0===o.length?"":o.map((function(t,a){return g.a.createElement("div",{className:"test_array_item mt30 borbottomeeetpm pb20",key:a},g.a.createElement("p",{className:"clearfix pr mb20"},g.a.createElement("span",{className:"fl mr10 color-red"},"*"),g.a.createElement("span",{className:"color-blue font-16 fl",name:"sample_inputs_label"},"\u7ec4",a+1),g.a.createElement("span",{className:"fl ml20 color-grey-6"},g.a.createElement("input",{className:L===a?"bor-red fl martopf4":"fl martopf4",style:{width:"25%",display:!0===z?"inline-block":"none"},onInput:function(t){return e.editpercentage(t,a)},value:t.score}),g.a.createElement("span",{className:"mr15 ml10",style:{display:!0===z?"inline-block":"none"}},"%"),g.a.createElement(n.a,{onChange:function(){return e.evaluationonChange(t.hidden,a)},checked:1===t.hidden},"\u9690\u85cf",g.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"))),g.a.createElement(l.a,{placement:"bottom",title:"\u5220\u9664"},g.a.createElement("div",{className:"fr sample_icon_remove ",style:{display:0===a?"none":"block"},onClick:function(){return e.del_test_array(a)}},g.a.createElement("i",{className:"iconfont icon-shanchu_Hover font-16 fl"})))),g.a.createElement(S,{className:"textareavalue mb15",name:"test_set[input][]",placeholder:"\u8f93\u5165",value:t.input,id:"textareavalue"+a,rows:3,onInput:function(t){return e.evaluationoninputvalue(t,a,"sr")}}),g.a.createElement(S,{className:"textareavalue",name:"test_set[output][]",placeholder:"\u9884\u671f\u8f93\u51fa",value:t.output,id:a+"textareavalue",rows:5,onInput:function(t){return e.evaluationoninputvalue(t,a,"yq")}}),g.a.createElement("div",{className:"clearfix lineh-30 mt20"},g.a.createElement("span",{className:"fl mr10 color-grey-6"},"\u5339\u914d\u89c4\u5219\uff1a"),g.a.createElement(w,{className:"fl",value:t.match_rule,onChange:function(t){return e.changeEvaluationRule(t,a)}},g.a.createElement(d.a,{value:"full"},"\u5b8c\u5168\u5339\u914d",g.a.createElement("span",{className:"color-grey-8 font-14"},"\uff08\u5b9e\u9645\u8f93\u51fa\u4e0e\u9884\u671f\u8f93\u51fa\u5b8c\u5168\u76f8\u540c\uff09")),g.a.createElement(d.a,{value:"last"},"\u672b\u5c3e\u5339\u914d",g.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")))))})))),g.a.createElement("p",{className:"clearfix",onClick:this.addevaluationon},g.a.createElement(i.a,{type:"primary",ghost:!0,className:"edu-default-btn edu-greenback-btn mt20 mb20"},"\u65b0\u589e\u6d4b\u8bd5\u96c6")),g.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"))))),4<this.props.identity||void 0===this.props.identity||!1===m?"":g.a.createElement("div",{className:"clearfix mt30"},g.a.createElement(_.a,Object.assign({url:"/shixuns/"+u+"/challenges",bottomvalue:"\u63d0\u4ea4",onSubmits:this.submitarbitrationevaluation},this.props,this.state,{loadings:!1}))))}}]),t}(f.Component)}}]);