2022-08-02 10:16:07 +08:00
|
|
|
<template>
|
2022-08-02 20:19:15 +08:00
|
|
|
<div class="conent">
|
|
|
|
|
<div class="btn">
|
|
|
|
|
<el-button type="primary">新增</el-button>
|
|
|
|
|
</div>
|
2022-08-02 10:16:07 +08:00
|
|
|
|
2022-08-02 20:19:15 +08:00
|
|
|
<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>
|
2022-08-02 10:16:07 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-08-02 20:19:15 +08:00
|
|
|
import axios from "axios";
|
2022-08-02 10:16:07 +08:00
|
|
|
export default {
|
2022-08-02 20:19:15 +08:00
|
|
|
name: "GlxtUsers",
|
2022-08-02 10:16:07 +08:00
|
|
|
|
|
|
|
|
data() {
|
2022-08-02 20:19:15 +08:00
|
|
|
return {
|
|
|
|
|
tableList: [], //列表数据
|
|
|
|
|
};
|
2022-08-02 10:16:07 +08:00
|
|
|
},
|
2022-08-02 20:19:15 +08:00
|
|
|
mounted() {
|
|
|
|
|
//角色表单数据请求
|
|
|
|
|
axios({
|
|
|
|
|
method: "get",
|
|
|
|
|
params: {},
|
|
|
|
|
url: "http://doc.ii090.com/mock/267/api/users",
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
this.tableList = res.data.data;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
};
|
2022-08-02 10:16:07 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2022-08-02 20:19:15 +08:00
|
|
|
.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;
|
|
|
|
|
}
|
2022-08-02 10:16:07 +08:00
|
|
|
</style>
|