|
|
|
@ -36,10 +36,10 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
|
props: this.props,
|
|
|
|
|
userids: this.props.userids,
|
|
|
|
|
game_list:this.props.game_list,
|
|
|
|
|
gline:0,
|
|
|
|
|
boolgalist:this.props.boolgalist,
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
// console.log("TraineetraininginformationModal")
|
|
|
|
|
// console.log("TraineetraininginformationModal")
|
|
|
|
|
// console.log(this.props)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -51,123 +51,133 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
|
// this.seacthdata();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// 设置数据
|
|
|
|
|
// seacthdata = () => {
|
|
|
|
|
//
|
|
|
|
|
// console.log(datalist)
|
|
|
|
|
// }
|
|
|
|
|
LimitNumber=(txt)=> {
|
|
|
|
|
var str = txt;
|
|
|
|
|
if(str.length>25){
|
|
|
|
|
str = str.substring(0,25)+"......"
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
const columns = [
|
|
|
|
|
var columns;
|
|
|
|
|
if(this.props.boolgalist === true) {
|
|
|
|
|
columns = [
|
|
|
|
|
{
|
|
|
|
|
title: '关卡',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
|
key: 'number',
|
|
|
|
|
width: 92,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span >
|
|
|
|
|
<a style={{"color":'#07111B', "text-align": "center"}}>{record.number}</a>
|
|
|
|
|
<span>
|
|
|
|
|
<a style={{"color": '#07111B', "text-align": "center"}}>{record.number}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '完成时间',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'name',
|
|
|
|
|
width: 178,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span >
|
|
|
|
|
<a style={{"color":'#989898', "text-align": "center"}} >{record.name==='Invalid date'?"--":record.name}</a>
|
|
|
|
|
{
|
|
|
|
|
title: '完成时间',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'name',
|
|
|
|
|
width: 178,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a style={{
|
|
|
|
|
"color": '#989898',
|
|
|
|
|
"text-align": "center"
|
|
|
|
|
}}>{record.name === 'Invalid date' ? "--" : record.name}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '耗时',
|
|
|
|
|
dataIndex: 'stduynumber',
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a style={{"color":'#989898', "text-align": "center"}}>{record.stduynumber}</a>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '',
|
|
|
|
|
dataIndex: 'complete_status',
|
|
|
|
|
key: 'complete_status',
|
|
|
|
|
width: 100,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.complete_status === 2 ? <img src={delay}/> : record.complete_status === 3 ?
|
|
|
|
|
<img src={invalid}/> : ""}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '经验值',
|
|
|
|
|
key: 'classroom',
|
|
|
|
|
dataIndex: 'classroom',
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a style={{"color":'#29BD8B', "text-align": "center"}}>{record.classroom}</a>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '耗时',
|
|
|
|
|
dataIndex: 'stduynumber',
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
width: 92,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a style={{"color": '#989898', "text-align": "center"}}>{record.stduynumber}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
const columnss = [
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '关卡',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
|
key: 'number',
|
|
|
|
|
title: '经验值',
|
|
|
|
|
key: 'classroom',
|
|
|
|
|
width: 92,
|
|
|
|
|
dataIndex: 'classroom',
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span >
|
|
|
|
|
<span>
|
|
|
|
|
<a style={{"color": '#29BD8B', "text-align": "center"}}>{record.classroom}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
columns = [
|
|
|
|
|
{
|
|
|
|
|
title: '关卡',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
|
key: 'number',
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span >
|
|
|
|
|
<a style={{"color":'#07111B', "text-align": "center"}}>{record.number}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '完成时间',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'name',
|
|
|
|
|
width: 178,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span >
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '完成时间',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'name',
|
|
|
|
|
width: 178,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span >
|
|
|
|
|
<a style={{"color":'#989898', "text-align": "center"}} >{record.name==='Invalid date'?"--":record.name}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '',
|
|
|
|
|
dataIndex: 'complete_status',
|
|
|
|
|
key: 'complete_status',
|
|
|
|
|
width: 100,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.complete_status===2?<img src={delay}/>:record.complete_status===3?<img src={invalid}/>:""}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '耗时',
|
|
|
|
|
dataIndex: 'stduynumber',
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
width: 92,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '耗时',
|
|
|
|
|
dataIndex: 'stduynumber',
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a style={{"color":'#989898', "text-align": "center"}}>{record.stduynumber}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '经验值',
|
|
|
|
|
key: 'classroom',
|
|
|
|
|
width: 92,
|
|
|
|
|
dataIndex: 'classroom',
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '经验值',
|
|
|
|
|
key: 'classroom',
|
|
|
|
|
dataIndex: 'classroom',
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a style={{"color":'#29BD8B', "text-align": "center"}}>{record.classroom}</a>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<Modal
|
|
|
|
@ -181,7 +191,7 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
|
<div style={{width:"100%" }}className="login_register_content" >
|
|
|
|
|
<div style={{"width": "100%","text-align": "left","clear": "both"}}>
|
|
|
|
|
<div className="mt5 fl" >
|
|
|
|
|
<span style={{"text-align": "left"}}>{this.props.viewtrainingdata === undefined ? "" : this.props.viewtrainingdata.shixun_name}</span>
|
|
|
|
|
<span style={{"text-align": "left"}}>{this.props.viewtrainingdata === undefined ? "" : this.LimitNumber(this.props.viewtrainingdata.shixun_name)}</span>
|
|
|
|
|
<span className="ml10 " style={{"text-align": "left","color":'#29BD8B'}} >经验值:<span style={{"color":'#29BD8B'}}> {this.props.viewtrainingdata === undefined ? "" : this.props.viewtrainingdata.shixun_score}</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
{/*<Button type="primary" className="ml30" >实训报告</Button>*/}
|
|
|
|
|