fix bug
This commit is contained in:
@ -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() {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user