This commit is contained in:
wangshiming
2022-04-24 15:58:02 +08:00
parent 9290f43130
commit 900fe4fca7
2 changed files with 11 additions and 7 deletions

View File

@ -16,6 +16,7 @@ export class ParterChannelSalesEditComponent implements OnInit {
schema!: SFSchema;
ui!: SFUISchema;
i: any;
sts: any;
type: any;
record:any;
currentOAItem:any;
@ -29,13 +30,15 @@ export class ParterChannelSalesEditComponent implements OnInit {
) {}
ngOnInit(): void {
if(!this.sts) {
this.service.request(this.service.$api_getChannelSalesInfo, {id:this.i?.id}).subscribe(res => {
if(res){
this.record = res;
this.initSF();
}
});
}
this.initSF();
});
}
initSF() {

View File

@ -112,6 +112,7 @@ export class ParterChannelSalesListComponent implements OnInit {
nzWidth:600,
nzTitle: '新增',
nzContent: ParterChannelSalesEditComponent,
nzComponentParams: {sts: 'add'}
});
modalRef.afterClose.subscribe(res => {
if (res) {