增加刷新按钮

This commit is contained in:
禾几海
2020-05-27 16:41:32 +08:00
parent dba21730ca
commit e66d3bbf62
9 changed files with 44 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
<div class="inner-content">
<nz-card nzTitle="友链管理" nzSize="small">
<nz-card nzTitle="友链管理" nzSize="small" [nzExtra]="reload">
<button nz-button (click)="addLink()" style="margin-bottom: 15px">新增</button>
<nz-table #table [nzData]="pageList.list" [nzTotal]="pageList.total" [(nzPageIndex)]="pageIndex"
[nzPageSize]="pageSize" [nzLoading]="loading" [nzScroll]="{x:'1200px'}"
@@ -29,6 +29,10 @@
</nz-card>
</div>
<ng-template #reload>
<a (click)="getLinks()" title="刷新"><i nz-icon nzType="reload" nzTheme="outline"></i></a>
</ng-template>
<nz-modal [(nzVisible)]="modalVisible" [nzTitle]="modalTitle" (nzOnOk)="modalConfirm()"
(nzOnCancel)="modalVisible = false" [nzClosable]="true" [nzOkDisabled]="!formGroup.valid">
<form nz-form [formGroup]="formGroup">