|
|
|
@ -178,7 +178,9 @@ export default class TPMchallengesnew extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CreatePracticesend = () => {
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
CreatePracticesendtype:true
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -237,14 +239,15 @@ export default class TPMchallengesnew extends Component {
|
|
|
|
|
exec_time:exec_time
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
if (response.data.status === 1) {
|
|
|
|
|
$("html").animate({ scrollTop: 0 })
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
setopen: true,
|
|
|
|
|
CreatePracticesendtype:false,
|
|
|
|
|
tab2url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=2",
|
|
|
|
|
tab3url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=3",
|
|
|
|
|
})
|
|
|
|
|
// $("html").animate({ scrollTop: 0 })
|
|
|
|
|
|
|
|
|
|
window.location.href=`/shixuns/${id}/challenges/${response.data.challenge_id}/editcheckpoint`;
|
|
|
|
|
// this.setState({
|
|
|
|
|
// setopen: true,
|
|
|
|
|
// CreatePracticesendtype:false,
|
|
|
|
|
// tab2url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=2",
|
|
|
|
|
// tab3url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=3",
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this.props.showSnackbar(response.data.messages);
|
|
|
|
|