From 0e1e92f2e14b07942f2d8c21b4d96468322aecfe Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Tue, 19 Dec 2017 10:00:41 +0800 Subject: [PATCH] updates --- src/app/routes/users/installer/installer.component.html | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/app/routes/users/installer/installer.component.html b/src/app/routes/users/installer/installer.component.html index 7210492..413e329 100644 --- a/src/app/routes/users/installer/installer.component.html +++ b/src/app/routes/users/installer/installer.component.html @@ -1,6 +1,6 @@ <pro-header [title]="'������������������'"></pro-header> <nz-card [nzBordered]="false"> - <form nz-form (ngSubmit)="getData()" [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"> @@ -20,7 +20,7 @@ </div> <div nz-col [nzSpan]="8" class="mb-md"> <button nz-button type="submit" [nzType]="'primary'" [nzLoading]="loading" [nzSize]="'large'">������</button> - <button nz-button type="reset" (click)="getData()" [nzSize]="'large'" class="mx-sm">������</button> + <button nz-button type="reset" (click)="load(true)" [nzSize]="'large'" class="mx-sm">������</button> </div> </div> </form> @@ -85,19 +85,11 @@ <td nz-td> <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