100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > 在el-table中使用el-popover 没法点击确定或取消来关闭添加 多个按钮

在el-table中使用el-popover 没法点击确定或取消来关闭添加 多个按钮

时间:2020-12-25 02:07:12

相关推荐

在el-table中使用el-popover 没法点击确定或取消来关闭添加 多个按钮

editFlag(id) {

this.delLoading = true

editFlag(id).then(res => {

this.delLoading = false

this.refs[′flag−′+id].doClose()this.dleChangePage()this.init()this.refs['flag-' + id].doClose() this.dleChangePage() this.init() this.refs[′flag−′+id].doClose()this.dleChangePage()this.init()this.notify({

title: ‘废止成功’,

type: ‘success’,

duration: 2500

})

List item

}).catch(err => {this.delLoading = falsethis.$refs['flag-' + id].doClose()console.log(err.response.data.message)})},subDelete(id) {this.delLoading = truedel(id).then(res => {this.delLoading = falsethis.$refs['del-' + id].doClose()this.dleChangePage()this.init()this.$notify({title: '删除成功',type: 'success',duration: 2500})}).catch(err => {this.delLoading = falsethis.$refs['del-' + id].doClose()console.log(err.response.data.message)})},

<el-popover 组件

v-permission="[‘ADMIN’,‘FTZK_ALL’,‘FTZK_DELETE’]"

:ref="‘del-’+scope.row.id"

placement=“top”

width=“180”>

确定删除本条数据吗?

<div 想 style=“text-align: right; margin: 0”>

<el-button size=“mini” type=“text” @click="$refs[‘del-’+scope.row.id].doClose()">取消

<el-button :loading=“delLoading” type=“primary” size=“mini” @click=“subDelete(scope.row.id)”>确定

</div 想>

<el-button 想slot=“reference” type=“danger” icon=“el-icon-delete” size=“mini”/>

</el-popover 想>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。