feat(兑换码管理列表):删除兑换码时新增提示确认框
This commit is contained in:
parent
5c98718be5
commit
bac30b4521
|
@ -144,6 +144,13 @@ export default class acclist extends React.Component {
|
|||
|
||||
/* 删除创建中兑换码 */
|
||||
deleteCodeFunction(params) {
|
||||
const _self = this
|
||||
Sweetalert.confirm({
|
||||
type: "warning",
|
||||
closeBtn: true,
|
||||
title: "确认操作",
|
||||
content: <p>是否删除该兑换码?</p>,
|
||||
onConfirm() {
|
||||
deleteCode(params.id)
|
||||
.then((res) => {
|
||||
handelResponse(
|
||||
|
@ -151,7 +158,7 @@ export default class acclist extends React.Component {
|
|||
(response, msg) => {
|
||||
Notify.clear()
|
||||
Notify.success(msg)
|
||||
this.getCodeListFn()
|
||||
_self.getCodeListFn()
|
||||
},
|
||||
(err) => {
|
||||
Notify.error(err)
|
||||
|
@ -159,6 +166,11 @@ export default class acclist extends React.Component {
|
|||
)
|
||||
})
|
||||
.catch((err) => {})
|
||||
},
|
||||
onCancel: this.onCancel,
|
||||
className: "questModal",
|
||||
parentComponent: this
|
||||
})
|
||||
}
|
||||
|
||||
tabFn(index) {
|
||||
|
|
Loading…
Reference in New Issue