From d9e4a6800bd2a73d515ab52b26ce57b95c0996b7 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Mon, 18 Dec 2017 21:37:36 +0800
Subject: [PATCH] updates
---
src/app/routes/users/installer/installer.component.html | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/src/app/routes/users/installer/installer.component.html b/src/app/routes/users/installer/installer.component.html
index 0f5ba69..95b13ef 100644
--- a/src/app/routes/users/installer/installer.component.html
+++ b/src/app/routes/users/installer/installer.component.html
@@ -39,7 +39,14 @@
</span>
</nz-alert>
</div>
- <nz-table #nzTable [nzDataSource]="data" [nzPageSize]="q.ps" [nzLoading]="loading" (nzDataChange)="dataChange($event)" (nzPageIndexChange)="pageChange($event)" [nzShowTotal]="true">
+ <nz-table #nzTable
+ [nzAjaxData]="data"
+ [nzLoading]="http.loading"
+ [nzTotal]="total"
+ [(nzPageIndex)]="q.pi"
+ [nzPageSize]="q.ps"
+ [nzShowTotal]="true"
+ (nzPageIndexChange)="load()">
<thead nz-thead>
<tr>
<th nz-th [nzCheckbox]="true">
@@ -76,21 +83,13 @@
<td nz-td>{{i.nickname}}</td>
<td nz-td>{{i.updatedAt | _date}}</td>
<td nz-td>
- <a (click)="msg.success('���������' + i.name)">������</a>
+ <a (click)="edit(i)">������</a>
<span nz-table-divider></span>
- <a (click)="msg.success('���������' + i.name)">������</a>
+ <nz-popconfirm [nzTitle]="'���������������������������?'" [nzOkText]="'Yes'" [nzCancelText]="'No'" (nzOnConfirm)="popConfirm(i)" (nzOnCancel)="popCancel()">
+ <a nz-popconfirm>������</a>
+ </nz-popconfirm>
</td>
</tr>
</tbody>
</nz-table>
</nz-card>
-<nz-modal [nzVisible]="modalVisible" [nzTitle]="'������������'" [nzConfirmLoading]="loading" [nzContent]="modalContent" (nzOnCancel)="modalVisible=false" (nzOnOk)="save()">
- <ng-template #modalContent>
- <div nz-form-item class="d-flex">
- <div nz-form-label><label for="no">������</label></div>
- <div nz-form-control class="flex-1">
- <nz-input [(ngModel)]="description" name="description" [nzSize]="'large'" [nzPlaceHolder]="'���������'" nzId="no"></nz-input>
- </div>
- </div>
- </ng-template>
-</nz-modal>
--
Gitblit v1.8.0