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

editFlag(id) {
this.delLoading = true
editFlag(id).then(res => {
this.delLoading = false
this. r e f s [ ′ f l a g − ′ + i d ] . d o C l o s e ( ) t h i s . d l e C h a n g e P a g e ( ) t h i s . i n i t ( ) t h i s . 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 = false
    this.$refs['flag-' + id].doClose()
    console.log(err.response.data.message)
  })
},subDelete(id) {
  this.delLoading = true
  del(id).then(res => {
    this.delLoading = false
    this.$refs['del-' + id].doClose()
    this.dleChangePage()
    this.init()
    this.$notify({
      title: '删除成功',
      type: 'success',
      duration: 2500
    })
  }).catch(err => {
    this.delLoading = false
    this.$refs['del-' + id].doClose()
    console.log(err.response.data.message)
  })
},
  • v-permission="[‘ADMIN’,‘FTZK_ALL’,‘FTZK_DELETE’]"
    :ref="‘del-’+scope.row.id"
    placement=“top”
    width=“180”>

    确定删除本条数据吗?



    取消
    确定


你可能感兴趣的:(在el-table中使用el-popover,没法点击确定或取消来关闭添加 多个按钮)