<template>
  <div class="inline-16">
    <el-popconfirm
      title="确定启用当前选中账号吗？"
      @confirm="start()">
      <el-button slot="reference" type="text" size="small">启 用</el-button>
    </el-popconfirm>
  </div>
</template>

<script>
export default {
  props:['data'],
  methods:{
    async start () {
      const res = await this.$api.requested({"classname": "webmanage.users.users",
        "method": "changeStatus",
        "content": {
          "userid": this.data.userid,
          "isactive": 1
        }
      })
      this.$emit('onSuccess')
    },
  }
}

</script>
