|
|
|
@ -39,7 +39,8 @@
|
|
|
|
|
<th>角色</th> |
|
|
|
|
<th>职位</th> |
|
|
|
|
<th>创建时间</th> |
|
|
|
|
<th [width]="'20%'">操作</th> |
|
|
|
|
<th>状态</th> |
|
|
|
|
<th [width]="'18%'">操作</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
@ -66,11 +67,19 @@
|
|
|
|
|
<td> |
|
|
|
|
{{item.creationTime | date:"yyyy-MM-dd"}} |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<ng-container *ngIf="item.enabled; else elseTemplate"> |
|
|
|
|
<span class="green">已启用</span> |
|
|
|
|
</ng-container> |
|
|
|
|
<ng-template #elseTemplate> |
|
|
|
|
<span class="red">已禁用</span> |
|
|
|
|
</ng-template> |
|
|
|
|
</td> |
|
|
|
|
<td class="operation"> |
|
|
|
|
<a (click)="editUser(item)">编辑</a> |
|
|
|
|
<a (click)=" (item)">编辑</a> |
|
|
|
|
<a (click)="resetPassword(item)">重置密码</a> |
|
|
|
|
<!-- <a *ngIf="!item.enabled" class="green" (click)="cancel(item,true)">启用</a> |
|
|
|
|
<a *ngIf="item.enabled" class="redColor" (click)="cancel(item,false)">禁用</a> --> |
|
|
|
|
<a *ngIf="!item.enabled" class="green" (click)="cancel(item,true)">启用</a> |
|
|
|
|
<a *ngIf="item.enabled" class="orange" (click)="cancel(item,false)">禁用</a> |
|
|
|
|
<a class="red" (click)="delete(item)">删除</a> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|