|
@@ -158,6 +158,7 @@ const deleteCarouse = (contentId) => () =>{
|
158
|
158
|
getList({ pageNum: 1, pageSize: 10, showType: 'banner' })
|
159
|
159
|
}).catch((err) => {
|
160
|
160
|
console.log(err)
|
|
161
|
+ row.status = 0
|
161
|
162
|
message.info(err.msg || err.message)
|
162
|
163
|
})
|
163
|
164
|
},
|
|
@@ -175,6 +176,7 @@ const deleteCarouse = (contentId) => () =>{
|
175
|
176
|
getList({ pageNum: 1, pageSize: 10, showType: 'banner' })
|
176
|
177
|
}).catch((err) => {
|
177
|
178
|
console.log(err)
|
|
179
|
+ row.status = 1
|
178
|
180
|
message.info(err.msg || err.message)
|
179
|
181
|
})
|
180
|
182
|
},
|
|
@@ -183,13 +185,8 @@ const deleteCarouse = (contentId) => () =>{
|
183
|
185
|
|
184
|
186
|
}
|
185
|
187
|
|
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
|
+ const changePageNum = (pageNumber) => {
|
|
189
|
+ getList({ pageNum: pageNumber, pageSize: 10, showType: 'banner' })
|
193
|
190
|
}
|
194
|
191
|
|
195
|
192
|
// 提交事件
|
|
@@ -267,7 +264,7 @@ const handleSubmit = (e, props) => {
|
267
|
264
|
</AuthButton>
|
268
|
265
|
<Table dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
|
269
|
266
|
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
270
|
|
- <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={e => changePageNum(e,props)} current={data.current}/>
|
|
267
|
+ <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>
|
271
|
268
|
</div>
|
272
|
269
|
</>
|
273
|
270
|
)
|