You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
<div class="roleBox" id="roleBox"> |
|
<div class="topbox"> |
|
<div class="lefttop"> |
|
<span>角色列表</span> |
|
</div> |
|
<div class="righttop"> |
|
<button nz-button nzType="primary" (click)="addRole()"><i nz-icon nzType="plus-circle" |
|
nzTheme="outline"></i>新增</button> |
|
</div> |
|
</div> |
|
<div class="tablebox"> |
|
<nz-table #basicTable [nzData]="listOfData" [nzShowPagination]='false' [nzPageSize]='16'> |
|
<thead> |
|
<tr> |
|
<th style="padding-left: 40px;">角色</th> |
|
<th>权限</th> |
|
<th>创建/修改时间</th> |
|
<th>操作</th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<tr *ngFor="let data of basicTable.data"> |
|
<td>{{data.name}}</td> |
|
<td> |
|
<span *ngFor="let item of data.grantedFlatPermissions">{{item.displayName}}</span> |
|
</td> |
|
<td> |
|
{{(data.lastModificationTime ? data.lastModificationTime : data.creationTime) | date:"yyyy-MM-dd HH:mm:ss"}} |
|
</td> |
|
<td class="operation"> |
|
<a (click)="edit(data)">编辑</a> |
|
<a (click)="delete(data)">删除</a> |
|
</td> |
|
</tr> |
|
</tbody> |
|
</nz-table> |
|
</div> |
|
</div>
|
|
|