dev_cs_new
杨树明 6 years ago
parent 6b7eeb5a06
commit 2b70af1355

@ -308,6 +308,7 @@ class ShixunWorkModal extends Component{
} }
<div className={"clearfix"}> <div className={"clearfix"}>
<Checkbox checked={onChangetype} onChange={this.onChange} className={"ml10"}>{onChangetype===true?"清除":"全选"}</Checkbox> <Checkbox checked={onChangetype} onChange={this.onChange} className={"ml10"}>{onChangetype===true?"清除":"全选"}</Checkbox>
<span>有效作品都为0</span>
</div> </div>
<div className="clearfix mt30 edu-txt-center mb10"> <div className="clearfix mt30 edu-txt-center mb10">

@ -806,11 +806,11 @@ submittojoinclass=(value)=>{
<%= link_to '注册', user_join_path, :className => "ml5" %> <%= link_to '注册', user_join_path, :className => "ml5" %>
</span>*/} </span>*/}
{ user===undefined? { user===undefined?
<span className="font-15 fr mt17 ml10 mr25"> <span className="font-15 fr mt17 ml5 mr25">
<a onClick={()=>this.educoderlogin()} className="mr5 color-white">登录</a> <a onClick={()=>this.educoderlogin()} className="mr5 color-white">登录</a>
<em className="vertical-line"></em> <em className="vertical-line"></em>
<a href={"/register"} className="mr5 color-white">注册</a> <a href={"/register"} className="mr5 color-white">注册</a>
</span> :user.login===""?<span className="font-15 fr mt17 ml20 mr25"> </span> :user.login===""?<span className="font-15 fr mt17 ml5 mr25">
<a onClick={()=>this.educoderlogin()} className="mr5 color-white">登录</a> <a onClick={()=>this.educoderlogin()} className="mr5 color-white">登录</a>
<em className="vertical-line"></em> <em className="vertical-line"></em>
<a href={"/register"} className="mr5 color-white">注册</a> <a href={"/register"} className="mr5 color-white">注册</a>

@ -250,7 +250,7 @@ export default class TPMchallengesnew extends Component {
// }) // })
} }
this.props.showSnackbar(response.data.messages); // this.props.showSnackbar(response.data.messages);
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
}); });

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

@ -176,14 +176,16 @@ class ShixunCardList extends Component {
</div> </div>
<div className="fl mr20 font-16 bestChoose shixun_repertoire" <div className="fl mr20 font-16 bestChoose shixun_repertoire"
id="hot"
onClick={(e)=>this.latestHot(e,3)}>最热
</div>
<div className="fl font-16 bestChoose shixun_repertoire"
id="new" id="new"
onClick={(e)=>this.latestHot(e,4)}>最新 onClick={(e)=>this.latestHot(e,4)}>最新
</div> </div>
<div className="fl font-16 bestChoose shixun_repertoire"
id="hot"
onClick={(e)=>this.latestHot(e,3)}>最热
</div>
<div className="fl font-16 bestChoose shixun_repertoire ml20 mt1" <div className="fl font-16 bestChoose shixun_repertoire ml20 mt1"
style={{display:upcircle===true?"block":"none"}} style={{display:upcircle===true?"block":"none"}}
// onClick={()=>this.upcircles("asc")} // onClick={()=>this.upcircles("asc")}

Loading…
Cancel
Save