<template>
  <div style="display:inline;margin-left:10px">
    <el-popconfirm
      title="确定删除吗？"
      @confirm="deleteRow">
      <el-button size="small" slot="reference" icon="el-icon-delete">删 除</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.$router.go(-1)
      })
    },
  }
}

</script>
<style>
</style>