<template>
  <div style="display:inline">
    <el-popconfirm
      title="确定删除吗？"
      @confirm="deleteRow()">
      <el-button slot="reference" type="danger" icon="el-icon-delete" size="mini">删 除</el-button>
    </el-popconfirm>
  </div>
</template>

<script>
export default {
  props:['data'],
  methods:{
    deleteRow () {
      this.$api.requested({
        "classname": "webmanage.role.role",
        "method": "delete_role",
        "content": {
            "roleid":this.data.roleid
        }
      }).then(res=>{
        this.$emit('onSuccess')
      })
    },
  }
}

</script>
<style>
</style>