|
@@ -50,10 +50,9 @@ function PreselectionRecord(props) {
|
50
|
50
|
getList({ pageNumber: 1, pageSize: 10 })
|
51
|
51
|
}
|
52
|
52
|
|
53
|
|
- // 分页
|
54
|
|
- function changePageNum(pageNumber) {
|
55
|
|
- // eslint-disable-next-line react-hooks/rules-of-hooks
|
56
|
|
- getList({ pageNumber: pageNumber, pageSize: 10})
|
|
53
|
+ // 分页
|
|
54
|
+ const changePageNum = (pageNumber) => {
|
|
55
|
+ getList({ pageNum: pageNumber, pageSize: 10, salesBatchId : salesBatchId, ...props.form.getFieldsValue() })
|
57
|
56
|
}
|
58
|
57
|
|
59
|
58
|
const rowSelection = {
|
|
@@ -189,7 +188,11 @@ function PreselectionRecord(props) {
|
189
|
188
|
</Button>
|
190
|
189
|
</Form.Item>
|
191
|
190
|
</Form>
|
192
|
|
- <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={{ total: data.total, onChange: e => this.changePageNum(e) }} rowKey="House" />
|
|
191
|
+ {/* <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={{ total: data.total, onChange: e => this.changePageNum(e) }} rowKey="House" /> */}
|
|
192
|
+ <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
|
|
193
|
+ <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
|
194
|
+ <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>
|
|
195
|
+ </div>
|
193
|
196
|
</>
|
194
|
197
|
)
|
195
|
198
|
}
|