公共组件 #18
@@ -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">
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user