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

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

</script>
