增加刷新按钮

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">
<nz-table #table [nzData]="pageList.list" [nzTotal]="pageList.total" [(nzPageIndex)]="pageIndex"
[nzPageSize]="pageSize" [nzLoading]="loading" [nzScroll]="{x:'800px'}"
(nzPageIndexChange)="getVisitors()" nzFrontPagination="false">
@@ -22,3 +22,6 @@
</nz-table>
</nz-card>
</div>
<ng-template #reload>
<a (click)="getVisitors()" title="刷新"><i nz-icon nzType="reload" nzTheme="outline"></i></a>
</ng-template>

View File

@@ -2,7 +2,7 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule} from '@angular/router';
import {AdminVisitorComponent} from './admin-visitor.component';
import {NzButtonModule, NzCardModule, NzDividerModule, NzTableModule} from 'ng-zorro-antd';
import {NzButtonModule, NzCardModule, NzDividerModule, NzIconModule, NzTableModule} from 'ng-zorro-antd';
@NgModule({
@@ -15,7 +15,8 @@ import {NzButtonModule, NzCardModule, NzDividerModule, NzTableModule} from 'ng-z
NzCardModule,
NzTableModule,
NzButtonModule,
NzDividerModule
NzDividerModule,
NzIconModule
]
})
export class AdminVisitorModule {