chromesetting
daiao 5 years ago
commit 37b09e622e

@ -177,7 +177,8 @@ export default class TPManswer extends Component {
this.props.showSnackbar(response.data.message); this.props.showSnackbar(response.data.message);
} }
if (response.data.status == 1) { if (response.data.status == 1) {
$("html").animate({ scrollTop: 0 }) window.location.href=`/shixuns/${id}/challenges`;
// $("html").animate({ scrollTop: 0 })
} }
} }

@ -240,8 +240,8 @@ export default class TPMchallengesnew extends Component {
}).then((response) => { }).then((response) => {
if (response.data.status === 1) { if (response.data.status === 1) {
// $("html").animate({ scrollTop: 0 }) // $("html").animate({ scrollTop: 0 })
//window.location.href=`/shixuns/${id}/challenges/${response.data.challenge_id}/editcheckpoint?tab=2`;
window.location.href=`/shixuns/${id}/challenges/${response.data.challenge_id}/editcheckpoint`; window.location.href=`/shixuns/${id}/challenges/${response.data.challenge_id}/tab=2`;
// this.setState({ // this.setState({
// setopen: true, // setopen: true,
// CreatePracticesendtype:false, // CreatePracticesendtype:false,
@ -363,6 +363,7 @@ export default class TPMchallengesnew extends Component {
}).then((response) => { }).then((response) => {
this.props.showSnackbar(response.data.messages); this.props.showSnackbar(response.data.messages);
if (response.data.status === 1) { if (response.data.status === 1) {
window.location.href=`/shixuns/${id}/challenges/${checkpointId}/tab=2`;
this.setState({ this.setState({
setopen: true, setopen: true,
editPracticesendtype:false, editPracticesendtype:false,

@ -673,6 +673,7 @@ export default class TPMevaluation extends Component {
} }
).then((response) => { ).then((response) => {
this.props.showSnackbar(response.data.messages); this.props.showSnackbar(response.data.messages);
window.location.href=`/shixuns/${id}/challenges/${response.data.challenge_id}/tab=3`;
// if(response.data.status===1){ // if(response.data.status===1){
// window.location.href = "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=3" // window.location.href = "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=3"
// } // }

@ -380,31 +380,31 @@ class Challenges extends Component {
<p className="clearfix mb10 mt20"> <p className="clearfix mb10 mt20">
<span className="font-16 fl">全部任务</span> <span className="font-16 fl">全部任务</span>
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ? {/*{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?*/}
<Link to={"/shixuns/" + id + "/challenges/new"} {/*<Link to={"/shixuns/" + id + "/challenges/new"}*/}
className="white-btn edu-greenline-btn fr addshixuns" {/*className="white-btn edu-greenline-btn fr addshixuns"*/}
// data-tip-down="新增代码编辑类型任务" {/*// data-tip-down="新增代码编辑类型任务"*/}
> {/*>*/}
<Tooltip placement="bottom" title={"新增代码编辑类型任务"}> {/*<Tooltip placement="bottom" title={"新增代码编辑类型任务"}>*/}
<img src={getImageUrl("images/educoder/icon/addsmallgreen.svg")} {/*<img src={getImageUrl("images/educoder/icon/addsmallgreen.svg")}*/}
className="fl mr5 mt6" /> {/*className="fl mr5 mt6" />*/}
实践任务 {/*实践任务*/}
</Tooltip> {/*</Tooltip>*/}
</Link> : "" {/*</Link> : ""*/}
} {/*}*/}
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ? {/*{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?*/}
<Link to={"/shixuns/" + id + "/challenges/newquestion"} {/*<Link to={"/shixuns/" + id + "/challenges/newquestion"}*/}
className="white-btn edu-greenline-btn fr mr20 addshixuns" {/*className="white-btn edu-greenline-btn fr mr20 addshixuns"*/}
// data-tip-down="新增选择题类型任务" {/*// data-tip-down="新增选择题类型任务"*/}
> {/*>*/}
<Tooltip placement="bottom" title={"新增选择题类型任务"}> {/*<Tooltip placement="bottom" title={"新增选择题类型任务"}>*/}
<img src={getImageUrl("images/educoder/icon/addsmallgreen.svg")} {/*<img src={getImageUrl("images/educoder/icon/addsmallgreen.svg")}*/}
className="fl mr5 mt5" /> {/*className="fl mr5 mt5" />*/}
选择题任务 {/*选择题任务*/}
</Tooltip> {/*</Tooltip>*/}
</Link> : "" {/*</Link> : ""*/}
} {/*}*/}
</p> </p>
<div className="alltask"> <div className="alltask">

Loading…
Cancel
Save