<template>
  <div class="inline-16">
    <el-popconfirm
      title="确定结束吗？"
      @confirm="deleteRow">
      <el-button size="mini" type="primary" slot="reference">结 束</el-button>
    </el-popconfirm>
  </div>
</template>

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

</script>
<style>
</style>