|
@@ -183,8 +183,13 @@ const deleteCarouse = (contentId) => () =>{
|
183
|
183
|
|
184
|
184
|
}
|
185
|
185
|
|
186
|
|
- const changePageNum = (pageNumber) => {
|
187
|
|
- getList({ pageNum: pageNumber, pageSize: 10, showType: 'banner' })
|
|
186
|
+ const changePageNum = (pageNumber, props) => {
|
|
187
|
+ props.form.validateFields((err, values) => {
|
|
188
|
+ if (!err) {
|
|
189
|
+ console.log('提交数据: ', values)
|
|
190
|
+ getList({ pageNum: pageNumber, pageSize: 10, ...values, showType: 'banner' })
|
|
191
|
+ }
|
|
192
|
+ });
|
188
|
193
|
}
|
189
|
194
|
|
190
|
195
|
// 提交事件
|
|
@@ -262,7 +267,7 @@ const handleSubmit = (e, props) => {
|
262
|
267
|
</AuthButton>
|
263
|
268
|
<Table dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
|
264
|
269
|
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
265
|
|
- <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>
|
|
270
|
+ <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={e => changePageNum(e,props)} current={data.current}/>
|
266
|
271
|
</div>
|
267
|
272
|
</>
|
268
|
273
|
)
|