|
|
@ -362,7 +362,7 @@ class PollNew extends Component {
|
|
|
|
pollid: result.data.data.id,
|
|
|
|
pollid: result.data.data.id,
|
|
|
|
Newedit: false,
|
|
|
|
Newedit: false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.props.history.push(`/courses/${this.props.match.params.coursesId}/polls/${result.data.data.id}/detail?tab=2`)
|
|
|
|
this.props.history.push(`/classrooms/${this.props.match.params.coursesId}/polls/${result.data.data.id}/detail?tab=2`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2590,7 +2590,7 @@ class PollNew extends Component {
|
|
|
|
if (result.data.status === 0) {
|
|
|
|
if (result.data.status === 0) {
|
|
|
|
// console.log("更新题目成功")
|
|
|
|
// console.log("更新题目成功")
|
|
|
|
// this.props.showNotification("保存成功");
|
|
|
|
// this.props.showNotification("保存成功");
|
|
|
|
this.props.history.push(`/courses/${this.props.match.params.coursesId}/polls/${pollid}/detail?tab=2`)
|
|
|
|
this.props.history.push(`/classrooms/${this.props.match.params.coursesId}/polls/${pollid}/detail?tab=2`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
|
@ -2766,7 +2766,7 @@ class PollNew extends Component {
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// let courseId=this.props.match.params.coursesId;
|
|
|
|
// let courseId=this.props.match.params.coursesId;
|
|
|
|
// if(courseId===undefined){
|
|
|
|
// if(courseId===undefined){
|
|
|
|
// this.props.history.push("/courses");
|
|
|
|
// this.props.history.push("/classrooms");
|
|
|
|
// }else{
|
|
|
|
// }else{
|
|
|
|
// this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
// this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
@ -2833,10 +2833,10 @@ class PollNew extends Component {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.props.match.params.news === "new"?
|
|
|
|
this.props.match.params.news === "new"?
|
|
|
|
<a className=" btn colorgrey fl hovercolorblue"
|
|
|
|
<a className=" btn colorgrey fl hovercolorblue"
|
|
|
|
href={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}>问卷</a>
|
|
|
|
href={`/classrooms/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}>问卷</a>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<a className=" btn colorgrey fl hovercolorblue"
|
|
|
|
<a className=" btn colorgrey fl hovercolorblue"
|
|
|
|
href={`/courses/${this.props.match.params.coursesId}/polls/${left_banner_id}`}>问卷</a>
|
|
|
|
href={`/classrooms/${this.props.match.params.coursesId}/polls/${left_banner_id}`}>问卷</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
@ -2847,10 +2847,10 @@ class PollNew extends Component {
|
|
|
|
className="fl color-black summaryname mt5">{this.props.match.params.news === undefined ? "新建问卷" : this.props.match.params.news === "new" ? "新建问卷" : "编辑问卷"}</p>
|
|
|
|
className="fl color-black summaryname mt5">{this.props.match.params.news === undefined ? "新建问卷" : this.props.match.params.news === "new" ? "新建问卷" : "编辑问卷"}</p>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.props.match.params.news === "new" ?
|
|
|
|
this.props.match.params.news === "new" ?
|
|
|
|
<a href={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}
|
|
|
|
<a href={`/classrooms/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}
|
|
|
|
className=" fr font-16"></a>
|
|
|
|
className=" fr font-16"></a>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<a href={`/courses/${this.props.match.params.coursesId}/polls/${left_banner_id}`}
|
|
|
|
<a href={`/classrooms/${this.props.match.params.coursesId}/polls/${left_banner_id}`}
|
|
|
|
className=" fr font-16"></a>
|
|
|
|
className=" fr font-16"></a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|