<template>
  <div v-if="data.status === '待跟进' || data.status === '跟进中' || data.status === '已过期'" class="inline-16">
    <el-popconfirm
      title="确定撤回当前线索吗？"
      @confirm="revoke()">
      <el-button slot="reference" size="small" type="text">撤 回</el-button>
    </el-popconfirm>
    
  </div>
</template>

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

</script>
<style>
</style>