<template>
  <div class="conent">
    <div class="btn">
      <el-button type="primary">新增</el-button>
    </div>

    <div class="table">
      <el-table :data="tableList" style="width: 100%">
        <el-table-column prop="id" label="ID" width="400"> </el-table-column>
        <el-table-column prop="name" label="角色名称" width="400">
        </el-table-column>
        <el-table-column prop="guard_name" label="权限内容" width="400">
        </el-table-column>
        <el-table-column label="操作">
          <el-button>编辑</el-button>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
import axios from "axios";
export default {
  name: "GlxtUsers",

  data() {
    return {
      tableList: [], //列表数据
    };
  },
  mounted() {
    //角色表单数据请求
    axios({
      method: "get",
      params: {},
      url: "http://doc.ii090.com/mock/267/api/users",
    }).then((res) => {
      this.tableList = res.data.data;
    });
  },
  
};
</script>

<style lang="scss" scoped>
.conent {
  width: 100%;
  min-height: calc(100vh - 200px);
}
.btn {
  height: 104px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  .el-button {
    width: 114px;
    height: 44px;
    border-radius: 3px;
  }
}
.table {
  margin-top: 20px;
}
</style>
