This commit is contained in:
Taric Xin
2022-04-22 14:42:08 +08:00
parent 1a0ba55ea0
commit 29789d20ab
8 changed files with 145 additions and 52 deletions

View File

@ -25,7 +25,7 @@ export class PartnerListComponent {
@ViewChild('editTemplate', { static: true })
editTemplate: any;
templateId: any;
templateId: any;
templates: any[] = [];
@ViewChild('editCannel', { static: true })
@ -73,7 +73,9 @@ export class PartnerListComponent {
nzFooter: null
});
modal.afterClose.subscribe(res => {
modal.destroy();
if (res) {
this.st.load(1);
}
});
}

View File

@ -1,5 +1,6 @@
import { Component, Input, OnInit, ViewChild } from '@angular/core';
import { SFComponent, SFSchema, SFValue } from '@delon/form';
import { ModalHelper } from '@delon/theme';
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
import { PartnerListService } from '../../services/partner-list.service';
@ -15,7 +16,7 @@ export class PartnerAuditModalComponent implements OnInit {
info: any;
schema!: SFSchema;
sourcePage = '';
constructor(private nzModalService: NzModalService, public service: PartnerListService) {}
constructor(private nzModalService: NzModalService, public service: PartnerListService, private modal: NzModalRef) {}
ngOnInit(): void {
this.initSF(this.info);
@ -49,7 +50,7 @@ export class PartnerAuditModalComponent implements OnInit {
widget: 'radio',
hidden: this.info.isPass !== undefined
},
default: true
default: this.info.isPass !== undefined ? this.info.isPass : true
},
channelId: {
title: '渠道销售',
@ -121,7 +122,7 @@ export class PartnerAuditModalComponent implements OnInit {
.subscribe(res => {
if (res) {
this.service.msgSrv.success('审核成功!');
this.close();
this.modal.destroy(1);
}
});
}

View File

@ -142,6 +142,12 @@ export class PartnerDetailComponent implements OnInit, OnDestroy {
nzComponentParams: { info: { ...this.detailData, isPass }, sourcePage: '合伙人审核详情' },
nzFooter: null
});
modal.afterClose.subscribe(res => {
if (res) {
this.initData();
}
});
}
ratify() {
@ -370,7 +376,7 @@ export class PartnerDetailComponent implements OnInit, OnDestroy {
buttons: [
{
text: '详情',
click: (item) => this.service.showChangeDetail(item.id)
click: item => this.service.showChangeDetail(item.id)
}
]
}

View File

@ -130,6 +130,12 @@ export class PersonalPartnerDetailComponent implements OnInit {
},
nzFooter: null
});
modal.afterClose.subscribe(res => {
if (res) {
this.initData();
}
});
}
ratify() {