通用组件-确认框

This commit is contained in:
禾几海
2020-07-01 17:58:26 +08:00
parent 1d46241a06
commit 9dca081c7a
4 changed files with 16 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ export class CommonTableComponent<T> implements OnInit, OnChanges {
dataList: PageList<T> = new PageList<T>();
ngOnInit(): void {
this.getData();
if (!this.template) this.template = {}
this.data.forEach(dat => {
if (!dat.action) return;
dat.action.forEach(act => {
@@ -40,7 +40,9 @@ export class CommonTableComponent<T> implements OnInit, OnChanges {
act.hover = () => null;
}
})
})
});
if (!this.request) return
this.getData();
}
getData = () => {