<template>
  <div class="inline-16">
    <el-popconfirm
      title="确定删除当前分组吗？"
      @confirm="deleteRow()">
      <el-button slot="reference" type="text" icon="el-icon-delete" size="small" style="margin-right:50px;color:#333">删 除</el-button>
    </el-popconfirm>
    
  </div>
</template>

<script>
export default {
  props:['data'],
  methods:{
    async deleteRow () {
      const res = await this.$api.requested({
        "id": "20220831164403",
        "version":1,
        "content": {
          "sys_phonebookgroupid":this.data.data.sys_phonebookgroupid
        }
      })
      this.tool.showMessage(res,()=>{
        this.$emit('onSuccess')
      })
    }
  }
}

</script>
<style>
</style>