fix bug
This commit is contained in:
@ -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() {
|
||||
|
||||
@ -112,6 +112,7 @@ export class ParterChannelSalesListComponent implements OnInit {
|
||||
nzWidth:600,
|
||||
nzTitle: '新增',
|
||||
nzContent: ParterChannelSalesEditComponent,
|
||||
nzComponentParams: {sts: 'add'}
|
||||
});
|
||||
modalRef.afterClose.subscribe(res => {
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user