|
|
|
@ -79,11 +79,9 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
var columns;
|
|
|
|
|
console.log(83);
|
|
|
|
|
console.log(this.props.boolgalist);
|
|
|
|
|
if(this.props.boolgalist&&this.props.boolgalist === false) {
|
|
|
|
|
columns = [
|
|
|
|
|
const columns = [
|
|
|
|
|
{
|
|
|
|
|
title: '关卡',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
@ -150,9 +148,8 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
columns = [
|
|
|
|
|
|
|
|
|
|
const columnss = [
|
|
|
|
|
{
|
|
|
|
|
title: '关卡',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
@ -202,7 +199,7 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<Modal
|
|
|
|
@ -246,46 +243,108 @@ class TraineetraininginformationModal extends Component {
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
this.props.game_list === undefined?"" : this.props.game_list.length<4?
|
|
|
|
|
<div className="edu-table edu-back-white ">
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
` .ant-table-body{
|
|
|
|
|
{this.props.boolgalist === false?
|
|
|
|
|
<div>
|
|
|
|
|
{
|
|
|
|
|
this.props.game_list === undefined?"" : this.props.game_list.length<4?
|
|
|
|
|
<div className="edu-table edu-back-white ">
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
` .ant-table-body{
|
|
|
|
|
overflow: hidden !important;
|
|
|
|
|
}`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
<div className={"both"}></div>
|
|
|
|
|
{this.props.game_list === undefined ? "" : <Table
|
|
|
|
|
className="mt20"
|
|
|
|
|
dataSource={this.props.game_list}
|
|
|
|
|
columns={columns}
|
|
|
|
|
loading={false}
|
|
|
|
|
pagination={false}
|
|
|
|
|
onChange={this.TablePagination}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<div className="edu-table edu-back-white ">
|
|
|
|
|
<div className={"both"}></div>
|
|
|
|
|
{this.props.game_list === undefined ? "" : <Table
|
|
|
|
|
className="mt20"
|
|
|
|
|
dataSource={this.props.game_list}
|
|
|
|
|
columns={columns}
|
|
|
|
|
pagination={{ //分页
|
|
|
|
|
total: this.props.game_list.length, //数据总数量
|
|
|
|
|
pageSize: this.props.game_list.length, //一页显示几条
|
|
|
|
|
current: 1,
|
|
|
|
|
}}
|
|
|
|
|
loading={false}
|
|
|
|
|
pagination={false}
|
|
|
|
|
onChange={this.TablePagination}
|
|
|
|
|
scroll={{ y: 300 }}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
{
|
|
|
|
|
this.props.game_list === undefined?"" : this.props.game_list.length<4?
|
|
|
|
|
<div className="edu-table edu-back-white ">
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
` .ant-table-body{
|
|
|
|
|
overflow: hidden !important;
|
|
|
|
|
}`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
<div className={"both"}></div>
|
|
|
|
|
{this.props.game_list === undefined ? "" : <Table
|
|
|
|
|
</style>
|
|
|
|
|
<div className={"both"}></div>
|
|
|
|
|
{this.props.game_list === undefined ? "" : <Table
|
|
|
|
|
className="mt20"
|
|
|
|
|
dataSource={this.props.game_list}
|
|
|
|
|
columns={columns}
|
|
|
|
|
columns={columnss}
|
|
|
|
|
loading={false}
|
|
|
|
|
pagination={false}
|
|
|
|
|
onChange={this.TablePagination}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<div className="edu-table edu-back-white ">
|
|
|
|
|
<div className={"both"}></div>
|
|
|
|
|
{this.props.game_list === undefined ? "" : <Table
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<div className="edu-table edu-back-white ">
|
|
|
|
|
<div className={"both"}></div>
|
|
|
|
|
{this.props.game_list === undefined ? "" : <Table
|
|
|
|
|
className="mt20"
|
|
|
|
|
dataSource={this.props.game_list}
|
|
|
|
|
columns={columns}
|
|
|
|
|
columns={columnss}
|
|
|
|
|
pagination={{ //分页
|
|
|
|
|
total: this.props.game_list.length, //数据总数量
|
|
|
|
|
pageSize: this.props.game_list.length, //一页显示几条
|
|
|
|
|
current: 1,
|
|
|
|
|
}}
|
|
|
|
|
total: this.props.game_list.length, //数据总数量
|
|
|
|
|
pageSize: this.props.game_list.length, //一页显示几条
|
|
|
|
|
current: 1,
|
|
|
|
|
}}
|
|
|
|
|
loading={false}
|
|
|
|
|
pagination={false}
|
|
|
|
|
onChange={this.TablePagination}
|
|
|
|
|
scroll={{ y: 300 }}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Modal>
|
|
|
|
|