|
|
|
@ -1,42 +1,41 @@ |
|
|
|
|
<form nz-form [formGroup]="searchForm" class="search_form"> |
|
|
|
|
<form nz-form [formGroup]="searchForm" class="search_form" [nzLayout]="'vertical'"> |
|
|
|
|
<div nz-row [nzGutter]="24"> |
|
|
|
|
<div nz-col [nzSpan]="4"> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>用户名</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<input nz-input formControlName="userName" /> |
|
|
|
|
<input nz-input formControlName="userName" placeholder="请输入" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="4"> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>登录账户</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<input nz-input formControlName="loginName" /> |
|
|
|
|
<input nz-input formControlName="loginName" placeholder="请输入"/> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="4"> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>联系方式</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<input nz-input formControlName="telephone" /> |
|
|
|
|
<input nz-input formControlName="telephone" placeholder="请输入"/> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="4"> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>状态</nz-form-label> |
|
|
|
|
<nz-form-label>账户状态</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<nz-select formControlName="status" nzAllowClear> |
|
|
|
|
<nz-option nzValue="1" nzLabel="正常"></nz-option> |
|
|
|
|
<nz-option nzValue="2" nzLabel="禁用"></nz-option> |
|
|
|
|
<nz-select formControlName="status" nzAllowClear [nzPlaceHolder]="'请选择'"> |
|
|
|
|
<nz-option *ngFor="let item of accountStatus" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<button nz-button [nzType]="'primary'" (click)="searchFormSubmit()">搜索</button> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<button nz-button [nzType]="'primary'" (click)="searchFormSubmit()">查询</button> |
|
|
|
|
<button nz-button (click)="searchFormReset()">重置</button> |
|
|
|
|
<button nz-button [nzType]="'primary'" (click)="showEditAccount(true, null)">创建</button> |
|
|
|
|
</div> |
|
|
|
@ -44,6 +43,7 @@ |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<nz-table #basicTable |
|
|
|
|
[nzScroll]="{ x: '1100px' }" |
|
|
|
|
[nzBordered]="true" |
|
|
|
|
[nzFrontPagination]="false" |
|
|
|
|
[nzShowQuickJumper]="true" |
|
|
|
@ -57,10 +57,10 @@ |
|
|
|
|
<th nzWidth="80px">用户名</th> |
|
|
|
|
<th nzWidth="50px">登录账户</th> |
|
|
|
|
<th nzWidth="80px">联系方式</th> |
|
|
|
|
<th nzWidth="30px">状态</th> |
|
|
|
|
<th nzWidth="30px">账户状态</th> |
|
|
|
|
<th nzWidth="50px">创建时间</th> |
|
|
|
|
<th nzWidth="50px">更新时间</th> |
|
|
|
|
<th nzWidth="50px">操作</th> |
|
|
|
|
<th nzRight nzWidth="50px">操作</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
@ -68,14 +68,14 @@ |
|
|
|
|
<td>{{data.userName}}</td> |
|
|
|
|
<td>{{data.loginName}}</td> |
|
|
|
|
<td>{{data.telephone}}</td> |
|
|
|
|
<td>{{data.status | sysAccountStatus}}</td> |
|
|
|
|
<td>{{data.status | dictionary: 'SEC_USER_STATUS'}}</td> |
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td>{{data.updateTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td> |
|
|
|
|
<td nzRight> |
|
|
|
|
<a (click)="showEditAccount(false, data)">修改</a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a nz-dropdown [nzDropdownMenu]="menu"> |
|
|
|
|
更多操作 |
|
|
|
|
更多 |
|
|
|
|
<span nz-icon nzType="down"></span> |
|
|
|
|
</a> |
|
|
|
|
<nz-dropdown-menu #menu="nzDropdownMenu"> |
|
|
|
|