<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.ordercluerule",
        "method": "deletemx",
        "content": {
          "sat_orderclue_areaid": this.data.sat_orderclue_areaid
        }
      })
      this.tool.showMessage(res,()=>{
        this.$emit('onSuccess')
      })
    }
  }
}

</script>
<style>
</style>