fix bug
This commit is contained in:
@ -90,7 +90,54 @@ export class FreightComponentsListComponent implements OnInit {
|
||||
nzFooter: null
|
||||
});
|
||||
}
|
||||
|
||||
showService(record: any) {
|
||||
const modalRef = this.modal.create({
|
||||
nzTitle: '分配客服人员',
|
||||
//nzContent: PartnerEditComponent,
|
||||
nzWidth: 600,
|
||||
nzComponentParams: {
|
||||
i: record
|
||||
},
|
||||
nzFooter: null
|
||||
});
|
||||
modalRef.afterClose.subscribe((res: any) => {
|
||||
if (res) {
|
||||
this.st.load(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
editPartner(record: any) {
|
||||
const modalRef = this.modal.create({
|
||||
nzTitle: '修改合伙人',
|
||||
//nzContent: PartnerEditComponent,
|
||||
nzWidth: 600,
|
||||
nzComponentParams: {
|
||||
i: record
|
||||
},
|
||||
nzFooter: null
|
||||
});
|
||||
modalRef.afterClose.subscribe((res: any) => {
|
||||
if (res) {
|
||||
this.st.load(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
editSale(record: any) {
|
||||
const modalRef = this.modal.create({
|
||||
nzTitle: '修改渠道销售',
|
||||
//nzContent: PartnerEditComponent,
|
||||
nzWidth: 600,
|
||||
nzComponentParams: {
|
||||
i: record
|
||||
},
|
||||
nzFooter: null
|
||||
});
|
||||
modalRef.afterClose.subscribe((res: any) => {
|
||||
if (res) {
|
||||
this.st.load(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
initSF() {
|
||||
this.schema = {
|
||||
properties: {
|
||||
@ -350,7 +397,7 @@ export class FreightComponentsListComponent implements OnInit {
|
||||
className: 'text-center',
|
||||
buttons: [
|
||||
{
|
||||
text: '查看<br/>',
|
||||
text: '查看',
|
||||
acl: { ability: ['USERCENTER-FREIGHT-LIST-view'] },
|
||||
click: item => {
|
||||
this.router.navigate(['./detail', item.id], { relativeTo: this.ar });
|
||||
@ -366,6 +413,21 @@ export class FreightComponentsListComponent implements OnInit {
|
||||
acl: { ability: ['USERCENTER-FREIGHT-LIST-balance'] },
|
||||
text: '资金账户',
|
||||
click: item => this.showAccountDetail(item)
|
||||
},
|
||||
{
|
||||
acl: { ability: ['USERCENTER-FREIGHT-LIST-balance'] },
|
||||
text: '分配客服人员',
|
||||
click: item => this.showService(item)
|
||||
},
|
||||
{
|
||||
acl: { ability: ['USERCENTER-FREIGHT-LIST-balance'] },
|
||||
text: '修改合伙人',
|
||||
click: item => this.editPartner(item)
|
||||
},
|
||||
{
|
||||
acl: { ability: ['USERCENTER-FREIGHT-LIST-balance'] },
|
||||
text: '修改渠道销售',
|
||||
click: item => this.editSale(item)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user