<template>
  <div style="display:inline;margin-left:10px">
    <el-popconfirm
      title="确定删除吗？"
      @confirm="deleteRow">
      <el-button size="small" type="text" slot="reference">删 除</el-button>
    </el-popconfirm>
  </div>
</template>

<script>
export default {
  props:['data'],
  methods:{
    async deleteRow () {
      const res = await this.$api.requested({
        "id": 20220901111202,
        "content": {
            "sa_salestargetbillid": this.$route.query.id,
            "hrid": [
              this.data.hrid
            ]
        },
      })
      this.tool.showMessage(res,()=>{
        this.$emit('onSuccess')
      })
    },
  }
}

</script>
<style>
</style>