Commit c7db38c1 authored by wangchunxiang's avatar wangchunxiang

fix:scroll

parent 18bc4b35
Pipeline #2248 passed with stage
in 0 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -8,5 +8,5 @@ ...@@ -8,5 +8,5 @@
<link rel="shortcut icon" href="./favicon.png"><link href="./css\1.css" rel="stylesheet"><link href="./css\index.css" rel="stylesheet"></head> <link rel="shortcut icon" href="./favicon.png"><link href="./css\1.css" rel="stylesheet"><link href="./css\index.css" rel="stylesheet"></head>
<body> <body>
<div id="ice-container"></div> <div id="ice-container"></div>
<script type="text/javascript" src="./vendors~index.492db4ef39b5fbb503d6.js"></script><script type="text/javascript" src="./index.f8a13ab433f12cd870c7.js"></script></body> <script type="text/javascript" src="./vendors~index.492db4ef39b5fbb503d6.js"></script><script type="text/javascript" src="./index.2cf46b605370b2dd68f8.js"></script></body>
</html> </html>
...@@ -10,9 +10,9 @@ export default class ItemTable extends Component{ ...@@ -10,9 +10,9 @@ export default class ItemTable extends Component{
{ {
(()=>{ (()=>{
if(this.props.scroll){ if(this.props.scroll){
return <Table rowKey='id' bordered scroll={this.props.scroll} onChange={this.props.onChange || null} columns={this.props.columns} dataSource={this.props.dataSource.data} pagination={{onChange: this.props.pager,total:this.props.dataSource.totalNum,onShowSizeChange:this.props.onShowSizeChange,showSizeChanger:true}} rowSelection={this.props.rowSelection}/> return <Table rowKey='id' bordered scroll={this.props.scroll} onChange={this.props.onChange || null} columns={this.props.columns} dataSource={this.props.dataSource.data} pagination={{onChange: this.props.pager,total:this.props.dataSource.totalNum,onShowSizeChange:this.props.onShowSizeChange,showSizeChanger:true,pageSizeOptions:["10","20","50","500"]}} rowSelection={this.props.rowSelection}/>
}else { }else {
return <Table rowKey='id' bordered onChange={this.props.onChange || null} columns={this.props.columns} dataSource={this.props.dataSource.data} pagination={{onChange: this.props.pager,total:this.props.dataSource.totalNum,onShowSizeChange:this.props.onShowSizeChange,showSizeChanger:true}} rowSelection={this.props.rowSelection}/> return <Table rowKey='id' bordered onChange={this.props.onChange || null} columns={this.props.columns} dataSource={this.props.dataSource.data} pagination={{onChange: this.props.pager,total:this.props.dataSource.totalNum,onShowSizeChange:this.props.onShowSizeChange,showSizeChanger:true,pageSizeOptions:["10","20","50","500"]}} rowSelection={this.props.rowSelection}/>
} }
})() })()
} }
......
...@@ -35,13 +35,13 @@ const { TextArea } = Input; ...@@ -35,13 +35,13 @@ const { TextArea } = Input;
list: [{ anchor: "提现监控管理" }], list: [{ anchor: "提现监控管理" }],
}; };
columns = [ columns = [
{ title: "平台", dataIndex: "platform", key: "platform"}, { title: "平台", dataIndex: "platform", key: "platform",width:120},
{ title: "渠道", dataIndex: "channel", key: "channel" }, { title: "渠道", dataIndex: "channel", key: "channel",width:150 },
{ title: "货币", dataIndex: "type", key: "type" }, { title: "货币", dataIndex: "type", key: "type",width:120 },
{ title: "单次最高提现", dataIndex: "oneWithdrawal", key: "oneWithdrawal", }, { title: "单次最高提现", dataIndex: "oneWithdrawal", key: "oneWithdrawal", width:120},
{ title: "单日最高提现", dataIndex: "dayWithdrawal", key: "dayWithdrawal"}, { title: "单日最高提现", dataIndex: "dayWithdrawal", key: "dayWithdrawal",width:120},
{ title: "每日单用户最高提现", dataIndex: "userDayWithdrawal", key: "userDayWithdrawal",}, { title: "每日单用户最高提现", dataIndex: "userDayWithdrawal", key: "userDayWithdrawal",width:180},
{ title: "状态", dataIndex: "statusName", key: "statusName",}, { title: "状态", dataIndex: "statusName", key: "statusName",width:120},
{ title: "操作", dataIndex: "operate", key: "operate",render:(text,record)=>{ { title: "操作", dataIndex: "operate", key: "operate",render:(text,record)=>{
return <div> return <div>
<Button type='default' className='ml-10 edit' onClick={()=> this.showBatchModal(record)}>修改</Button> <Button type='default' className='ml-10 edit' onClick={()=> this.showBatchModal(record)}>修改</Button>
...@@ -291,7 +291,7 @@ const { TextArea } = Input; ...@@ -291,7 +291,7 @@ const { TextArea } = Input;
<Button type='primary' className='ml-20' onClick={()=> this.showBatchModal()}>设置监控提现</Button> <Button type='primary' className='ml-20' onClick={()=> this.showBatchModal()}>设置监控提现</Button>
</div> </div>
<ItemTable columns={this.columns} dataSource={this.state.dataSource} pager={this.pager} rowSelection={rowSelection} onShowSizeChange={this.onShowSizeChange}/> <ItemTable columns={this.columns} dataSource={this.state.dataSource} pager={this.pager} rowSelection={rowSelection} onShowSizeChange={this.onShowSizeChange} scroll={{y:600}}/>
</section> </section>
<Modal title="设置提现监控" <Modal title="设置提现监控"
visible={this.state.visible} visible={this.state.visible}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment