Commit 2aec019724f8110afc3c2502ebfb97a9702db7e1
1 parent
dcfe4978
Exists in
master
app-ht
1. F 角色列表显示角色id
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app-ht/modules/system/views/role/index.php
@@ -42,8 +42,9 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -42,8 +42,9 @@ $this->params['breadcrumbs'][] = $this->title; | ||
42 | <table class="table table-striped table-bordered"> | 42 | <table class="table table-striped table-bordered"> |
43 | <thead> | 43 | <thead> |
44 | <tr> | 44 | <tr> |
45 | + <th style="width:10%;">ID</th> | ||
45 | <th style="width:10%;">角色名称</th> | 46 | <th style="width:10%;">角色名称</th> |
46 | - <th style="width:20%;">描述</th> | 47 | + <th style="width:10%;">描述</th> |
47 | <th style="width:50%;">拥有权限</th> | 48 | <th style="width:50%;">拥有权限</th> |
48 | <th style="width:20%;">操作</th> | 49 | <th style="width:20%;">操作</th> |
49 | </tr> | 50 | </tr> |
@@ -51,6 +52,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -51,6 +52,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
51 | <tbody> | 52 | <tbody> |
52 | <?php foreach ($roles as $k => $role) : ?> | 53 | <?php foreach ($roles as $k => $role) : ?> |
53 | <tr> | 54 | <tr> |
55 | + <td><?= $role['id'] ?></td> | ||
54 | <td><?= $role['name'] ?></td> | 56 | <td><?= $role['name'] ?></td> |
55 | <td><?= $role['description'] ?></td> | 57 | <td><?= $role['description'] ?></td> |
56 | <td><?= $role['perms'] ?></td> | 58 | <td><?= $role['perms'] ?></td> |