0
点赞
收藏
分享

微信扫一扫

vue中删除时的弹框提示代码

Sikj_6590 2022-04-13 阅读 115
elementui

this.$confirm('确认要删除该条数据吗?', '提示', { type: 'warning' })

                        .then(() => {

                            deleteDataById(userId).then(res => {

                                if (res && res.data.code == "200") {

                                    this.$notify({

                                        title: "删除成功",

                                        type: 'success'

                                    });

                                    this.queryList()

                                    this.$addOptLog('删除', '删除数据集【' + row.name + '】')

                                } else {

                                    this.$notify({

                                        title: res.data.msg,

                                        type: 'error'

                                    });

                                }

                            })

                        }).catch(() => { });

举报

相关推荐

0 条评论