|
|
|
@ -2319,7 +2319,14 @@ class PollNew extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gotohome=()=>{
|
|
|
|
|
let courseId=this.props.match.params.coursesId;
|
|
|
|
|
if(courseId===undefined){
|
|
|
|
|
this.props.history.push("/courses");
|
|
|
|
|
}else{
|
|
|
|
|
this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//试图
|
|
|
|
|
render() {
|
|
|
|
|
let {
|
|
|
|
@ -2373,19 +2380,18 @@ class PollNew extends Component {
|
|
|
|
|
/> : ""}
|
|
|
|
|
<div className="educontent mb50">
|
|
|
|
|
<p className="clearfix mb20 mt10">
|
|
|
|
|
<ActionBtn className=" btn colorgrey fl hovercolorblue"
|
|
|
|
|
to={`/courses/${this.props.match.params.coursesId}`}>{this.props.coursedata.name}</ActionBtn>
|
|
|
|
|
<a className=" btn colorgrey fl hovercolorblue" onClick={()=>this.gotohome()}>{this.props.coursedata.name}</a>
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
|
<ActionBtn className=" btn colorgrey fl hovercolorblue"
|
|
|
|
|
to={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}>问卷</ActionBtn>
|
|
|
|
|
<a className=" btn colorgrey fl hovercolorblue"
|
|
|
|
|
to={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}>问卷</a>
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
|
<span>{this.props.match.params.news === undefined ? "新建" : this.props.match.params.news === "new" ? "新建" : "编辑"}</span>
|
|
|
|
|
</p>
|
|
|
|
|
<div className="clearfix mb30">
|
|
|
|
|
<p
|
|
|
|
|
className="fl color-black summaryname mt5">{this.props.match.params.news === undefined ? "新建问卷" : this.props.match.params.news === "new" ? "新建问卷" : "编辑问卷"}</p>
|
|
|
|
|
<ActionBtn to={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}
|
|
|
|
|
className=" fr font-16">返回</ActionBtn>
|
|
|
|
|
<a onClick={()=>this.gotohome()}
|
|
|
|
|
className=" fr font-16">返回</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*<Form {...formItemLayout} onSubmit={this.handleSubmit}>*/}
|
|
|
|
|