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

View File

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