|
|
|
@ -1,17 +1,17 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import { WordsBtn } from 'educoder';
|
|
|
|
|
import {Tooltip,message,Modal} from 'antd';
|
|
|
|
|
import {Tooltip,message,Modal,Spin} from 'antd';
|
|
|
|
|
import {Link} from 'react-router-dom';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import Modals from '../../modals/Modals';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Startshixuntask extends Component{
|
|
|
|
|
constructor(props){
|
|
|
|
|
super(props);
|
|
|
|
|
this.state = {
|
|
|
|
|
startbtn:false
|
|
|
|
|
startbtn:false,
|
|
|
|
|
isSpin:false,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -60,11 +60,15 @@ class Startshixuntask extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
hidestartshixunsreplace=(url)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true
|
|
|
|
|
})
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if(response.status===200){
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunsreplace:false
|
|
|
|
|
shixunsreplace:false,
|
|
|
|
|
isSpin:false,
|
|
|
|
|
})
|
|
|
|
|
message.success('重置成功,正在进入实训!');
|
|
|
|
|
let path="/shixuns/"+response.data.shixun_identifier+"/challenges";
|
|
|
|
@ -124,6 +128,8 @@ class Startshixuntask extends Component{
|
|
|
|
|
<p className="task-popup-text-center font-16 pb20">实训已经更新了,正在为您重置!</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="task-popup-submit clearfix">
|
|
|
|
|
<Spin size="large" spinning={isSpin}>
|
|
|
|
|
</Spin>
|
|
|
|
|
<a className="task-btn task-btn-orange fr mr51"
|
|
|
|
|
onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了!</a>
|
|
|
|
|
</div>
|
|
|
|
|