|
|
@ -36,7 +36,6 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
props: this.props,
|
|
|
|
props: this.props,
|
|
|
|
userids: this.props.userids,
|
|
|
|
userids: this.props.userids,
|
|
|
|
game_list:this.props.game_list,
|
|
|
|
game_list:this.props.game_list,
|
|
|
|
boolgalist:this.props.boolgalist,
|
|
|
|
|
|
|
|
experience:this.props.experience,
|
|
|
|
experience:this.props.experience,
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -52,26 +51,26 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
// this.seacthdata();
|
|
|
|
// this.seacthdata();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
|
// componentWillReceiveProps(nextProps) {
|
|
|
|
// console.log("46");
|
|
|
|
// // console.log("46");
|
|
|
|
// console.log(nextProps);
|
|
|
|
// // console.log(nextProps);
|
|
|
|
// console.log(this.props);
|
|
|
|
// // console.log(this.props);
|
|
|
|
if (nextProps.boolgalist != this.props.boolgalist) {
|
|
|
|
// if (nextProps.boolgalist != this.props.boolgalist) {
|
|
|
|
// console.log("50");
|
|
|
|
// // console.log("50");
|
|
|
|
// console.log(nextProps.user);
|
|
|
|
// // console.log(nextProps.user);
|
|
|
|
if (nextProps.boolgalist !== undefined) {
|
|
|
|
// if (nextProps.boolgalist !== undefined) {
|
|
|
|
// console.log("53");
|
|
|
|
// // console.log("53");
|
|
|
|
// console.log(nextProps.user);
|
|
|
|
// // console.log(nextProps.user);
|
|
|
|
this.setState({
|
|
|
|
// this.setState({
|
|
|
|
boolgalist: nextProps.boolgalist,
|
|
|
|
// boolgalist: nextProps.boolgalist,
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
LimitNumber=(txt)=> {
|
|
|
|
LimitNumber=(txt)=> {
|
|
|
|
var str = txt;
|
|
|
|
var str = txt;
|
|
|
|
if(str.length>25){
|
|
|
|
if(str.length>25){
|
|
|
@ -81,7 +80,7 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
var columns;
|
|
|
|
var columns;
|
|
|
|
if(this.state.boolgalist&&this.state.boolgalist === true) {
|
|
|
|
if(this.props.boolgalist&&this.props.boolgalist === true) {
|
|
|
|
columns = [
|
|
|
|
columns = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '关卡',
|
|
|
|
title: '关卡',
|
|
|
|