From 4f65f8c746fced7bce54a1073e7cbfaf3b104713 Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Tue, 02 Jan 2018 15:51:29 +0800
Subject: [PATCH] 账户管理

---
 src/app/routes/systems/account/account.component.html |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/app/routes/systems/account/account.component.html b/src/app/routes/systems/account/account.component.html
index 8c84cc4..5c458ac 100644
--- a/src/app/routes/systems/account/account.component.html
+++ b/src/app/routes/systems/account/account.component.html
@@ -1,6 +1,6 @@
 <pro-header [title]="'������������'"></pro-header>
 <nz-card [nzBordered]="false">
-	<form nz-form [nzLayout]="'inline'">
+	<form nz-form (ngSubmit)="load(true)" [nzLayout]="'inline'">
 		<div nz-row [nzGutter]="24">
 			<div nz-col [nzSpan]="8" class="mb-md">
 				<div nz-form-item class="d-flex">
@@ -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>
@@ -43,11 +43,11 @@
 	</form>
 
 	<div class="mb-md">
-		<button nz-button (click)="add()" [nzType]="'primary'" [nzSize]="'large'">
+		<button nz-button (click)="edit()" [nzType]="'primary'" [nzSize]="'large'">
 			<i class="anticon anticon-plus"></i><span>������</span>
 		</button>
 		<ng-container *ngIf="selectedRows.length > 0"> &nbsp;
-		<button nz-button [nzSize]="'large'" (click)="remove()">������������</button>
+			<button nz-button [nzSize]="'large'" (click)="remove()" >������������</button>
 		</ng-container>
 	</div>
 
@@ -72,7 +72,9 @@
 				<th nz-th [nzCheckbox]="true">
 					<label nz-checkbox [(ngModel)]="allChecked" [nzIndeterminate]="indeterminate" (ngModelChange)="checkAll($event)"></label>
 				</th>
-				<th nz-th><span>������</span></th>
+				<th nz-th><span>������</span>
+				<nz-table-sort (nzValueChange)="sort('account_name', $event)"></nz-table-sort>
+				</th>
 				<th nz-th><span>������</span></th>
 				<th nz-th><span>������������</span></th>
 				<th nz-th><span>���������</span></th>
@@ -81,7 +83,7 @@
 				<th nz-th><span>������������</span></th>
 				<th nz-th>
 					<span>������������</span>
-					<nz-table-sort [(nzValue)]="sortMap.updatedAt" (nzValueChange)="sort('expire_time', $event)"></nz-table-sort>
+					<nz-table-sort (nzValueChange)="sort('expire_time', $event)"></nz-table-sort>
 				</th>
 				<th nz-th><span>������</span></th>
 			</tr>
@@ -89,7 +91,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>
@@ -103,7 +105,7 @@
 					<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)" >
+						<nz-popconfirm  [nzTitle]="'���������������������������?'" [nzOkText]="'Yes'" [nzCancelText]="'No'" (nzOnConfirm)="remove(account.id)" >
 							<a nz-popconfirm>������</a>
 						</nz-popconfirm>
 					</ng-container>

--
Gitblit v1.8.0