<template>
  <div class="inline-16">
    <el-popconfirm
      title="确定删除当前线索吗？"
      @confirm="deleteRow()">
      <el-button slot="reference" size="small" type="text">删 除</el-button>
    </el-popconfirm>
    
  </div>
</template>

<script>
export default {
  props:['data'],
  methods:{
    async deleteRow () {
      const res = await this.$api.requested({
        "classname":"webmanage.saletool.orderclue.orderclue",
        "method": "deletemx",
        "content": {
          "sat_orderclueuploadbillmxid": this.data.sat_orderclueuploadbillmxid,
          "sat_orderclueuploadbillid": this.data.sat_orderclueuploadbillid
        }
      })
      this.tool.showMessage(res,()=>{
        this.$emit('onSuccess')
      })
    }
  }
}

</script>
<style>
</style>