修复 【兑换码管理】编辑立减金商品页面,加款成功后,点击页面的取消按钮,充值批次金额也应该被保存

This commit is contained in:
wangsongsole 2022-06-16 14:27:45 +08:00
parent 4891721bc2
commit 7663f0d21b
1 changed files with 68 additions and 62 deletions

View File

@ -241,6 +241,12 @@ export default class exchangedit extends React.Component {
})
.catch((err) => {})
} else {
this.getTableList()
}
}
getTableList() {
let code_batch_id = sessionStorage.getItem('code_id')
getCodesDetail(code_batch_id)
.then((res) => {
handelResponse(
@ -309,7 +315,6 @@ export default class exchangedit extends React.Component {
})
.catch((err) => {})
}
}
/* 转换数据 */
transFormData(reqCopy) {
@ -1360,6 +1365,7 @@ export default class exchangedit extends React.Component {
<Button
onClick={(e) => {
this.setState({ drawerVisible2: false })
this.getTableList()
}}>
取消
</Button>