This commit is contained in:
wangshiming
2022-04-19 15:06:49 +08:00
parent 1b0a7d4c95
commit b40ca2f5ea

View File

@ -63,37 +63,100 @@ export class DatatableMancustomtableComponent implements OnInit {
};
initST() {
this.columns = [
{ title: '部门', index: 'department', className: 'text-center', width: '200px' },
{ title: '业务员', index: 'salesmen', className: 'text-center', width: '200px' },
{ title: '已认证货主数', index: 'certifiedCount', className: 'text-center', width: '100px', iif: ()=> {
console.log(this.resourceStatus);
return this.resourceStatus !== 1
{ title: '部门', index: 'department', className: 'text-center', width: '150px' },
{ title: '业务员', index: 'salesmen', className: 'text-center', width: '150px' },
{
title: '已认证货主数',
index: 'certifiedCount',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 1 ? false : true;
}
},
{ title: '已认证合伙人', index: 'certifiedCount', className: 'text-center', width: '150px' ,
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
}},
{ title: '新增合伙人数', index: 'addCount', className: 'text-center', width: '150px' ,
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
}},
{ title: '合伙人活跃率', index: 'alivePer', className: 'text-center', width: '150px' ,
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
} },
{ title: '活跃合伙人数', index: 'aliveCount', className: 'text-center', width: '150px' ,
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
} },
{ title: '沉默合伙人数', index: 'silentCount', className: 'text-center', width: '150px' ,
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
} },
{ title: '流失合伙人数', index: 'drainCount', className: 'text-center', width: '150px' ,
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
}},
{ title: '未激活合伙人数', index: 'notActiveCount', className: 'text-center', width: '150px' ,
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
} },
{ title: '已认证合伙人', index: 'certifiedCount', className: 'text-center', width: '100px' },
{ title: '新增合伙人数', index: 'addCount', className: 'text-center', width: '100px' },
{ title: '合伙人活跃率', index: 'alivePer', className: 'text-center', width: '100px' },
{ title: '活跃合伙人数', index: 'aliveCount', className: 'text-center', width: '100px' },
{ title: '沉默合伙人数', index: 'silentCount', className: 'text-center', width: '100px' },
{ title: '流失合伙人数', index: 'drainCount', className: 'text-center', width: '100px' },
{ title: '未激活合伙人数', index: 'notActiveCount', className: 'text-center', width: '100px' },
{ title: '新增货主数', index: 'addCount', className: 'text-center', width: '100px' },
{ title: '货主活跃率', index: 'alivePer', className: 'text-center', width: '100px' },
{
title: '新增货主数',
index: 'addCount',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 1 ? false : true;
}
},
{
title: '货主活跃率',
index: 'alivePer',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 1 ? false : true;
}
},
{
title: '活跃货主数',
index: 'aliveCount',
className: 'text-center',
width: '100px'
width: '150px',
iif: () => {
return this?.resourceStatus !== 1 ? false : true;
}
},
{
title: '沉默货主数',
index: 'silentCount',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 1 ? false : true;
}
},
{ title: '沉默货主数', index: 'silentCount', className: 'text-center', width: '100px' },
{
title: '流失货主数',
index: 'drainCount',
className: 'text-right',
width: '100px',
width: '150px',
iif: () => {
return this?.resourceStatus !== 1 ? false : true;
}
},
{ title: '未激活货主数', index: 'notActiveCount', className: 'text-center', width: '120px' }
{
title: '未激活货主数',
index: 'notActiveCount',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 1 ? false : true;
}
}
];
}
/**
@ -238,12 +301,10 @@ export class DatatableMancustomtableComponent implements OnInit {
}
selectChange(e: number) {
console.log(e);
this.resourceStatus = e + 1;
// this.initST();
setTimeout(() => {
this.initST();
// this.st.load(1);
this.st?.resetColumns();
this.st?.load(1);
}, 500);
}
}