From 4156fed8a32e81a61b706b8a17876f7a1fdcabb7 Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Wed, 27 Dec 2017 15:45:16 +0800
Subject: [PATCH] 安装 用户更新
---
src/app/routes/systems/account/account.component.html | 31 +++++++++++++++----------------
1 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/src/app/routes/systems/account/account.component.html b/src/app/routes/systems/account/account.component.html
index 57015ce..09d86a2 100644
--- a/src/app/routes/systems/account/account.component.html
+++ b/src/app/routes/systems/account/account.component.html
@@ -28,9 +28,9 @@
<label>������������</label>
</div>
<div nz-form-control class="flex-1">
- <nz-select [(ngModel)]="query.isDelete" name="isDelete" [nzSize]="'large'" >
+ <nz-select [(ngModel)]="query.isDelete" name="isDelete" [nzSize]="'large'">
<nz-option *ngFor="let option of options" [nzLabel]="option.label" [nzValue]="option.value" ></nz-option>
- </nz-select>
+ </nz-select>
</div>
</div>
</div>
@@ -47,27 +47,26 @@
<i class="anticon anticon-plus"></i><span>������</span>
</button>
<ng-container *ngIf="selectedRows.length > 0">
- <button nz-button [nzSize]="'large'" (click)="remove()">������������</button>
+ <button nz-button [nzSize]="'large'" (click)="remove()">������������</button>
</ng-container>
</div>
<div class="mb-md">
- <nz-alert [nzType]="'info'" [nzShowIcon]="true">
+ <nz-alert [nzType]="'info'" [nzShowIcon]="true">
<span alert-body>
���������<strong class="text-primary">{{selectedRows.length}}</strong>���
- </span>
+ </span>
</nz-alert>
</div>
- <nz-table #nzTable
- [nzDataSource]="data"
+ <nz-table #nzTable
+ [nzAjaxData]="data"
[nzLoading]="http.loading"
- [nzTotal]="total"
+ [nzTotal]="total"
[(nzPageIndex)]="query.pageIndex"
- [nzPageSize]="query.pageSize"
+ [nzPageSize]="query.pageSize"
[nzShowTotal]="true"
- (nzPageIndexChange)="load()"
- (nzDataChange)="dataChange($event)">
+ (nzPageIndexChange)="load()">
<thead nz-thead>
<tr>
<th nz-th [nzCheckbox]="true">
@@ -81,7 +80,7 @@
<th nz-th><span>������</span></th>
<th nz-th><span>������������</span></th>
<th nz-th>
- <span>������������</span>
+ <span>������������</span>
<nz-table-sort [(nzValue)]="sortMap.updatedAt" (nzValueChange)="sort('expire_time', $event)"></nz-table-sort>
</th>
<th nz-th><span>������</span></th>
@@ -90,7 +89,7 @@
<tbody nz-tbody>
<tr nz-tbody-tr *ngFor="let account of nzTable.data">
<td nz-td [nzCheckbox]="true">
- <label nz-checkbox [(ngModel)]="account.checked" (ngModelChange)="refreshStatus($event)"></label>
+ <label nz-checkbox [(ngModel)]="account.checked" (ngModelChange)="refreshStatus($event)" [nzDisabled]="account.isDelete == '1'? true : false"></label>
</td>
<td nz-td>{{account.accountName}}</td>
<td nz-td>{{account.mobile}}</td>
@@ -101,10 +100,10 @@
<td nz-td>{{format_date(account.createTime)}}</td>
<td nz-td>{{format_date(account.expireTime)}}</td>
<td nz-td>
- <a (click)="edit(account)">������</a>
+ <a (click)="edit(account)">������</a>
<ng-container *ngIf="account.isDelete == '0'">
- <span nz-table-divider></span>
- <nz-popconfirm [nzTitle]="'���������������������������?'" [nzOkText]="'Yes'" [nzCancelText]="'No'" (nzOnConfirm)="delete(account)" >
+ <span nz-table-divider></span>
+ <nz-popconfirm [nzTitle]="'���������������������������?'" [nzOkText]="'Yes'" [nzCancelText]="'No'" (nzOnConfirm)="delete(account)" >
<a nz-popconfirm>������</a>
</nz-popconfirm>
</ng-container>
--
Gitblit v1.8.0