公共组件 #18

Merged
xiaohai2271 merged 45 commits from dev into master 2020-07-11 10:41:50 +08:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 54b3b643c9 - Show all commits

View File

@@ -16,7 +16,8 @@
[nzPageSize]="dataList.pageSize" [nzPageSize]="dataList.pageSize"
(nzPageIndexChange)="getData()" (nzPageIndexChange)="getData()"
nzFrontPagination="false" nzFrontPagination="false"
[nzScroll]="{x:'1300px'}"> [nzScroll]="{x:'1300px'}"
[nzLoading]="loading">
<thead> <thead>
<tr> <tr>
<ng-container *ngFor="let data of headData"> <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({ return this.httpService.Service<PageList<T>>(this.request).subscribe({
next: resp => { next: resp => {
this.dataList = resp.result; this.dataList = resp.result;
this.loading = false; setTimeout(() => this.loading = false, 10)
}, },
error: err => this.loading = false error: err => this.loading = false
}); });