公共表格组件-数据加载

This commit is contained in:
禾几海
2020-07-11 00:47:27 +08:00
parent 5524b8a80b
commit 54b3b643c9
2 changed files with 3 additions and 2 deletions

View File

@@ -16,7 +16,8 @@
[nzPageSize]="dataList.pageSize"
(nzPageIndexChange)="getData()"
nzFrontPagination="false"
[nzScroll]="{x:'1300px'}">
[nzScroll]="{x:'1300px'}"
[nzLoading]="loading">
<thead>
<tr>
<ng-container *ngFor="let data of headData">

View File

@@ -57,7 +57,7 @@ export class CommonTableComponent<T> implements OnInit, OnChanges {
return this.httpService.Service<PageList<T>>(this.request).subscribe({
next: resp => {
this.dataList = resp.result;
this.loading = false;
setTimeout(() => this.loading = false, 10)
},
error: err => this.loading = false
});