|
|
|
@ -2,67 +2,54 @@
|
|
|
|
|
<form #form="ngForm"> |
|
|
|
|
<div class="queryBox"> |
|
|
|
|
|
|
|
|
|
<div class="queryField"> |
|
|
|
|
<button type="button" mat-raised-button color="primary" (click)='open()'>创建企业用户</button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="queryField"> |
|
|
|
|
<label style="margin-right: 10px;">登录账号:</label> |
|
|
|
|
<input type="text" [(ngModel)]="userLogin" name="userLogin"> |
|
|
|
|
<div class="queryField"style="margin-right: 90px;"> |
|
|
|
|
<button type="button" mat-raised-button color="primary" (click)='open()'>创建用户</button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="queryField"> |
|
|
|
|
<label style="margin-right: 10px;">单位名称:</label> |
|
|
|
|
<input type="text" [(ngModel)]="userName" name="userName"> |
|
|
|
|
<label style="margin-right: 10px;">姓名:</label> |
|
|
|
|
<input type="text" [(ngModel)]="name" name="name" autocomplete="off"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="queryField"> |
|
|
|
|
<label style="margin-right: 10px;">统一社会信用代码:</label> |
|
|
|
|
<input type="text" [(ngModel)]="creditcode" name="creditcode"> |
|
|
|
|
<label style="margin-right: 10px;">身份证号:</label> |
|
|
|
|
<input type="text" [(ngModel)]="identityCard" name="identityCard" autocomplete="off"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div style="width: 100%;text-align: center;"> |
|
|
|
|
<div class="btnbox" style="margin-left: 90px;"> |
|
|
|
|
<button mat-raised-button color="primary" (click)='initData()'>查询</button> |
|
|
|
|
<button mat-raised-button style="margin-left: 25px;" type="button" (click)='empty()'>重置</button> |
|
|
|
|
<button mat-raised-button style="margin-left: 10px;" type="button" (click)='empty()'>重置</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8"> |
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="loginName"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>登录账号</th> |
|
|
|
|
<td mat-cell *matCellDef="let element">{{element.name}}<span style="color: red;" *ngIf="element.cancelled">(该账号已被注销)</span></td> |
|
|
|
|
<ng-container matColumnDef="name"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>姓名</th> |
|
|
|
|
<td mat-cell *matCellDef="let element">{{element.name}}</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="unitName"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>单位名称</th> |
|
|
|
|
<ng-container matColumnDef="identitycard"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>身份证号</th> |
|
|
|
|
<td mat-cell *matCellDef="let element">{{element.companyName}}</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="creditcode"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>统一社会信用代码</th> |
|
|
|
|
<ng-container matColumnDef="post"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>职务</th> |
|
|
|
|
<td mat-cell *matCellDef="let element">{{element.usci}}</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="time"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>创建时间</th> |
|
|
|
|
<td mat-cell *matCellDef="let element"> |
|
|
|
|
{{element.creationTime|date:'yyyy-MM-dd'}} |
|
|
|
|
</td> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="operation"> |
|
|
|
|
<th mat-header-cell *matHeaderCellDef>操作</th> |
|
|
|
|
<td mat-cell *matCellDef="let element"> |
|
|
|
|
<button mat-raised-button color="primary" class="maginleft" (click)='see(element)' *ngIf="!element.cancelled">查看学习记录</button> |
|
|
|
|
<button mat-raised-button color="primary" class="maginleft" (click)='reset(element)' *ngIf="!element.cancelled">重置密码</button> |
|
|
|
|
<button mat-raised-button color="primary" class="maginleft" (click)='see(element)' *ngIf="!element.cancelled">查看</button> |
|
|
|
|
<button mat-raised-button color="primary" class="maginleft" (click)='edit(element)' *ngIf="!element.cancelled">编辑</button> |
|
|
|
|
<button mat-raised-button color="primary" class="maginleft" (click)='enabled(element)' *ngIf="!element.cancelled && !element.enabled">启用</button> |
|
|
|
|
<button mat-raised-button color="primary" class="maginleft" (click)='edit(element)' *ngIf="!element.cancelled">修改</button> |
|
|
|
|
<!-- <button mat-raised-button color="primary" class="maginleft" (click)='enabled(element)' *ngIf="!element.cancelled && !element.enabled">启用</button> --> |
|
|
|
|
<button mat-raised-button color="warn" class="maginleft" (click)='noEnabled(element)' *ngIf="!element.cancelled && element.enabled">禁用</button> |
|
|
|
|
<button mat-raised-button color="warn" class="maginleft" (click)='logoff(element)' *ngIf="!element.cancelled">注销</button> |
|
|
|
|
<!-- <button mat-raised-button color="warn" class="maginleft" (click)='logoff(element)' *ngIf="!element.cancelled">注销</button> --> |
|
|
|
|
<button mat-raised-button color="warn" class="maginleft" (click)='delete(element)' *ngIf="element.cancelled">删除</button> |
|
|
|
|
</td> |
|
|
|
|
</ng-container> |
|
|
|
|