<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": 20220906150603,
        "version":1,
        "content": {
          "sa_salesforecastmodelid":this.data.sa_salesforecastmodelid
        }
      })
      this.tool.showMessage(res,()=>{
        this.$emit('onSuccess')
      })
    },
  }
}

</script>
<style>
</style>