|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import { WordsBtn } from 'educoder';
|
|
|
|
|
import { WordsBtn, getTaskUrlById } from 'educoder';
|
|
|
|
|
import {Tooltip,message,Modal,Spin} from 'antd';
|
|
|
|
|
import {Link} from 'react-router-dom';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
@ -44,6 +44,11 @@ class Startshixuntask extends Component{
|
|
|
|
|
startbtn:false
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.setState({
|
|
|
|
|
startbtn: false,
|
|
|
|
|
})
|
|
|
|
|
}, 1000)
|
|
|
|
|
|
|
|
|
|
if(response.data.status!=401&&response.data.status!=403){
|
|
|
|
|
const w=window.open('about:blank');
|
|
|
|
@ -156,13 +161,31 @@ class Startshixuntask extends Component{
|
|
|
|
|
{/*<a onClick={this.hidestartshixunCombattype}>知道了</a>*/}
|
|
|
|
|
{/*</p>*/}
|
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
<style>{`
|
|
|
|
|
a.startShixunTask_continueShixun {
|
|
|
|
|
padding: 0;
|
|
|
|
|
color: #4CACFF !important;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
{/* 如果是继续实战和查看实战,实训作业这边,后台会直接返回identity,直接写成a标签 */}
|
|
|
|
|
{this.props.isStudent?
|
|
|
|
|
<span>
|
|
|
|
|
{this.props.data&&this.props.data.task_operation&&this.props.data.task_operation?startbtn===false?<span onClick={()=>this.taskoperationId( this.props.data&&this.props.data.task_operation[1])}>
|
|
|
|
|
{this.props.data&&this.props.data.task_operation[0]}
|
|
|
|
|
</span>:"开启中":""}
|
|
|
|
|
</span>:""
|
|
|
|
|
{this.props.data&&this.props.data.task_operation&&this.props.data.task_operation?startbtn===false
|
|
|
|
|
?
|
|
|
|
|
((this.props.data && this.props.data.task_operation[1] && this.props.data.task_operation[1].indexOf('/') == -1) ?
|
|
|
|
|
<span>
|
|
|
|
|
<a href={getTaskUrlById(this.props.data.task_operation[1])}
|
|
|
|
|
class="startShixunTask_continueShixun"
|
|
|
|
|
>{this.props.data.task_operation[0]}</a>
|
|
|
|
|
</span>
|
|
|
|
|
:
|
|
|
|
|
<span onClick={()=>this.taskoperationId( this.props.data&&this.props.data.task_operation[1])}>
|
|
|
|
|
{this.props.data&&this.props.data.task_operation[0]}
|
|
|
|
|
</span>)
|
|
|
|
|
:"开启中":""}
|
|
|
|
|
</span>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|