|
|
@ -59,6 +59,7 @@ class TPMBanner extends Component {
|
|
|
|
hidestartshixunsreplacevalue:"",
|
|
|
|
hidestartshixunsreplacevalue:"",
|
|
|
|
isIE:false,
|
|
|
|
isIE:false,
|
|
|
|
Forkvisibletype: false,
|
|
|
|
Forkvisibletype: false,
|
|
|
|
|
|
|
|
isSpin:false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -322,12 +323,16 @@ class TPMBanner extends Component {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
hidestartshixunsreplace=(url)=>{
|
|
|
|
hidestartshixunsreplace=(url)=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
isSpin:true,
|
|
|
|
|
|
|
|
})
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
if(response.status===200){
|
|
|
|
if(response.status===200){
|
|
|
|
let path="/shixuns/"+response.data.shixun_identifier+"/challenges";
|
|
|
|
let path="/shixuns/"+response.data.shixun_identifier+"/challenges";
|
|
|
|
this.props.history.push(path);
|
|
|
|
this.props.history.push(path);
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
shixunsreplace:false
|
|
|
|
shixunsreplace:false,
|
|
|
|
|
|
|
|
isSpin:false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
message.success('重置成功,正在进入实训!');
|
|
|
|
message.success('重置成功,正在进入实训!');
|
|
|
|
this.startshixunCombat();
|
|
|
|
this.startshixunCombat();
|
|
|
@ -662,6 +667,8 @@ class TPMBanner extends Component {
|
|
|
|
closable={false}
|
|
|
|
closable={false}
|
|
|
|
footer={null}
|
|
|
|
footer={null}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<Spin size="large" spinning={isSpin}>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="task-popup-content">
|
|
|
|
<div className="task-popup-content">
|
|
|
|
<p className="task-popup-text-center font-16 pb20">实训已经更新了,正在为您重置!</p>
|
|
|
|
<p className="task-popup-text-center font-16 pb20">实训已经更新了,正在为您重置!</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -669,6 +676,7 @@ class TPMBanner extends Component {
|
|
|
|
<a className="task-btn task-btn-orange fr mr51"
|
|
|
|
<a className="task-btn task-btn-orange fr mr51"
|
|
|
|
onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了!</a>
|
|
|
|
onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了!</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</Spin>
|
|
|
|
</Modal>
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
|
|
<Modal
|
|
|
|
<Modal
|
|
|
|