fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-03-21 09:26:45
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-26 10:58:58
|
||||
* @LastEditTime : 2022-04-26 11:06:25
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -49,30 +49,7 @@ export class ParterRebateManageMentAddComponent implements OnInit {
|
||||
private modal: NzModalService,
|
||||
public shipperservice: ShipperBaseService
|
||||
) {}
|
||||
columns: STColumn[] = [
|
||||
{
|
||||
title: '合伙人名称',
|
||||
index: 'enterpriseName',
|
||||
width: 180,
|
||||
format: item => (item.partnerType ? `${item.enterpriseName || item.contactName}` : '')
|
||||
},
|
||||
{ title: '联系人', index: 'contactName', width: 150, format: item => (item.partnerType ? `${item.contactName}` : '') },
|
||||
{ title: '手机号', index: 'contactMobile', className: 'text-center', width: 150 },
|
||||
{ title: '类型', index: 'partnerType', className: 'text-center', width: 130, type: 'enum', enum: { 1: '企业', 2: '个人' } },
|
||||
{
|
||||
title: '操作',
|
||||
width: '90px',
|
||||
fixed: 'right',
|
||||
buttons: [
|
||||
{
|
||||
text: '移除',
|
||||
click: _record => this.delete(_record),
|
||||
iif: ()=> this.hiden,
|
||||
acl: { ability: ['AbnormalAppear-reply'] }
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
columns: STColumn[] =[]
|
||||
initSF(data?: any) {
|
||||
this.schema1 = {
|
||||
properties: {
|
||||
@ -92,13 +69,40 @@ export class ParterRebateManageMentAddComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
};
|
||||
this.columns= [
|
||||
{
|
||||
title: '合伙人名称',
|
||||
index: 'enterpriseName',
|
||||
width: 180,
|
||||
format: item => (item.partnerType ? `${item.enterpriseName || item.contactName}` : '')
|
||||
},
|
||||
{ title: '联系人', index: 'contactName', width: 150, format: item => (item.partnerType ? `${item.contactName}` : '') },
|
||||
{ title: '手机号', index: 'contactMobile', className: 'text-center', width: 150 },
|
||||
{ title: '类型', index: 'partnerType', className: 'text-center', width: 130, type: 'enum', enum: { 1: '企业', 2: '个人' } },
|
||||
{
|
||||
title: '操作',
|
||||
width: '120px',
|
||||
fixed: 'right',
|
||||
buttons: [
|
||||
{
|
||||
text: '移除',
|
||||
click: _record => this.delete(_record),
|
||||
iif: ()=> {
|
||||
console.log(this.hiden);
|
||||
return !this.hiden
|
||||
},
|
||||
acl: { ability: ['AbnormalAppear-reply'] }
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
ngOnInit() {
|
||||
console.log(this.ar.snapshot.queryParams.id);
|
||||
if(this.ar.snapshot?.queryParams?.id) {
|
||||
this.titleText= '查看'
|
||||
this.hiden= true
|
||||
|
||||
this.initSF();
|
||||
this.initData(this.ar.snapshot?.queryParams?.id);
|
||||
}
|
||||
this.addStatus = false;
|
||||
|
||||
Reference in New Issue
Block a user