|
|
|
@ -339,9 +339,6 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
|
|
|
|
|
goblakepath=(path,key)=>{
|
|
|
|
|
let {main,selectpath,pathtype} =this.state;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let newmain=[]
|
|
|
|
|
for(var i=0;i<=key;i++){
|
|
|
|
|
newmain.push(main[i])
|
|
|
|
@ -366,16 +363,20 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if(pathtype===2){
|
|
|
|
|
// var str=path;
|
|
|
|
|
// str.slice(0,str.length-1)
|
|
|
|
|
// debugger
|
|
|
|
|
// console.log(str)
|
|
|
|
|
let paths = path.substring(0,path.length-1);
|
|
|
|
|
console.log(paths)
|
|
|
|
|
this.setState({
|
|
|
|
|
selectpath: path,
|
|
|
|
|
selectpath: paths,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// delesavegetfilepath=(value)=>{
|
|
|
|
|
// let {selectpatharr} = this.state
|
|
|
|
|
// let newarr =selectpatharr;
|
|
|
|
@ -674,6 +675,7 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
selectpath:e.target.value
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
updatepath=(e,name,type)=>{
|
|
|
|
|
this.setState({
|
|
|
|
@ -949,6 +951,8 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
<Option value={2}>apk/exe</Option>
|
|
|
|
|
<Option value={3}>txt</Option>
|
|
|
|
|
<Option value={4}>html</Option>
|
|
|
|
|
<Option value={5}>mp3</Option>
|
|
|
|
|
<Option value={6}>mp4</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<a className="ml10" onClick={()=>this.showrepositoryurltip(1)}><img src={getImageUrl("images/educoder/problem.png")}/></a>
|
|
|
|
|
<div className="invite-tip clearfix repository_url_tippostion" style={{display:showrepositoryurltiptype===true?"block":"none"}} id="repository_url_tip"
|
|
|
|
@ -975,20 +979,20 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{pathoptionvalue===1?<div className="edu-back-white mb10 clearfix">
|
|
|
|
|
{pathoptionvalue===1||pathoptionvalue===5||pathoptionvalue===6?<div className="edu-back-white mb10 clearfix">
|
|
|
|
|
<div className="padding40-20">
|
|
|
|
|
<p className="color-grey-6 font-16 mb20">待处理图片路径</p>
|
|
|
|
|
<div className="df">
|
|
|
|
|
<div className="flex1 mr20">
|
|
|
|
|
<input type="text" className="input-100-45" autoComplete="off"
|
|
|
|
|
id="shixun_file_expect_picture_path" name="challenge[original_picture_path]"
|
|
|
|
|
placeholder="请选择版本库中存储了待处理图片的路径。例:src/step1/expectedimages"
|
|
|
|
|
placeholder="请选择版本库中存储了待处理文件(图片/MP3等)的路径。例:src/step1/sourcefiles"
|
|
|
|
|
value={shixunfileexpectpicturepath}
|
|
|
|
|
onInput={(e)=>this.updatepath(e,"shixunfileexpectpicturepath",2)}
|
|
|
|
|
onClick={(e)=>this.getfilepath(e,"shixunfileexpectpicturepath",2)}
|
|
|
|
|
/>
|
|
|
|
|
<p className="color-grey-9 mt15">
|
|
|
|
|
该路径下的文件将在学员评测本关任务时,作为原始图片显示在查看效果页,供学员参考,任务为图片处理时请指定该路径,并注意与程序文件所在文件夹分开
|
|
|
|
|
该路径下的文件将在学员评测本关任务时,作为原始文件显示在查看效果页,供学员参考;任务为文件处理时请指定该路径,并注意与程序文件所在文件夹分开。
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div></div>
|
|
|
|
@ -997,20 +1001,20 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
</div>:""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{pathoptionvalue===1? <div className="edu-back-white mb10 clearfix">
|
|
|
|
|
{pathoptionvalue===1||pathoptionvalue===5||pathoptionvalue===6? <div className="edu-back-white mb10 clearfix">
|
|
|
|
|
<div className="padding40-20">
|
|
|
|
|
<p className="color-grey-6 font-16 mb20">标准答案图片路径</p>
|
|
|
|
|
<div className="df">
|
|
|
|
|
<div className="flex1 mr20">
|
|
|
|
|
<input type="text" className="input-100-45" autoComplete="off"
|
|
|
|
|
id="shixun_file_standard_picture_path" name="challenge[expect_picture_path]"
|
|
|
|
|
placeholder="请选择版本库中存储了标准答案代码输出文件的路径。例:src/step1/expectedimages"
|
|
|
|
|
placeholder="请选择版本库中存储了标准答案文件(图片/MP3等)的路径。例:src/step1/expectedfiles"
|
|
|
|
|
value={shixunfilestandardpicturepath}
|
|
|
|
|
onInput={(e)=>this.updatepath(e,"shixunfilestandardpicturepath",2)}
|
|
|
|
|
onClick={(e)=>this.getfilepath(e,"shixunfilestandardpicturepath",2)}
|
|
|
|
|
/>
|
|
|
|
|
<p className="color-grey-9 mt15">
|
|
|
|
|
该路径下的文件将在学员评测本关任务时,作为参考答案显示在查看效果页,供学员参考任务输出结果为文件时请指定该路径,并注意与程序文件所在文件夹分开
|
|
|
|
|
该路径下的文件将在学员评测本关任务时,作为参考答案显示在查看效果页,供学员参考;任务输出结果为文件时请指定该路径,并注意与程序文件所在文件夹分开。
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div></div>
|
|
|
|
@ -1029,9 +1033,9 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
value={shixunfilepicturepath}
|
|
|
|
|
onInput={(e)=>this.updatepath(e,"shixunfilepicturepath",2)}
|
|
|
|
|
onClick={(e)=>this.getfilepath(e,"shixunfilepicturepath",2)}
|
|
|
|
|
placeholder="请在版本库中指定用来保存学员代码实际输出结果的路径。例:src/step1/outputimages"/>
|
|
|
|
|
placeholder="请在版本库中指定用来保存学员代码实际输出结果的路径。例:src/step1/outputfiles"/>
|
|
|
|
|
<p className="color-grey-9 mt15">
|
|
|
|
|
学员评测本关任务时生成的文件将保存在该路径下,并作为实际输出显示在查看效果页,供学员确认任务输出结果为文件时请指定该路径,并注意与程序文件所在文件夹分开
|
|
|
|
|
学员评测本关任务时生成的文件将保存在该路径下,并作为实际输出显示在查看效果页,供学员确认;任务输出结果为文件时请指定该路径,并注意与程序文件所在文件夹分开。
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div></div>
|
|
|
|
@ -1066,16 +1070,16 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
<p className="color-grey-9 mb20"
|
|
|
|
|
style={{width:'100%',height:'20px',display:scorevalue===true?'block':'none'}}
|
|
|
|
|
>
|
|
|
|
|
<span className={"headdfgf color979797"} style={{width:'500px'}} >
|
|
|
|
|
系统评分占比:
|
|
|
|
|
<RadioGroup
|
|
|
|
|
value={markvalue}
|
|
|
|
|
onChange={this.onChangemarkvalue}
|
|
|
|
|
>
|
|
|
|
|
<Radio value={true}>均分比例</Radio>
|
|
|
|
|
<Radio value={false}>自定义比例</Radio>
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</span>
|
|
|
|
|
<span className={"headdfgf color979797"} style={{width:'500px'}} >
|
|
|
|
|
系统评分占比:
|
|
|
|
|
<RadioGroup
|
|
|
|
|
value={markvalue}
|
|
|
|
|
onChange={this.onChangemarkvalue}
|
|
|
|
|
>
|
|
|
|
|
<Radio value={true}>均分比例</Radio>
|
|
|
|
|
<Radio value={false}>自定义比例</Radio>
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|