Browse Source

可展示下级的权限表格

main
klausY 5 years ago
parent
commit
3a0df419f7
  1. 8
      QMPlusVuePage/src/view/superAdmin/authority/authority.vue

8
QMPlusVuePage/src/view/superAdmin/authority/authority.vue

@ -3,7 +3,13 @@
<div class="button-box clearflex"> <div class="button-box clearflex">
<el-button @click="addAuthority('0')" type="primary">新增角色</el-button> <el-button @click="addAuthority('0')" type="primary">新增角色</el-button>
</div> </div>
<el-table :data="tableData" border stripe>
<el-table
:data="tableData"
style="width: 100%"
row-key="ID"
border
stripe
:tree-props="{children: 'children', hasChildren: 'hasChildren'}">
<el-table-column label="id" min-width="180" prop="ID"></el-table-column> <el-table-column label="id" min-width="180" prop="ID"></el-table-column>
<el-table-column label="角色id" min-width="180" prop="authorityId"></el-table-column> <el-table-column label="角色id" min-width="180" prop="authorityId"></el-table-column>
<el-table-column label="角色名称" min-width="180" prop="authorityName"></el-table-column> <el-table-column label="角色名称" min-width="180" prop="authorityName"></el-table-column>

Loading…
Cancel
Save