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

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

</script>
<style>
</style>