对象形式
//统计参数映射中文表
keyParms:any ={
memberCard: '会员卡',
prescription_status: '会员卡类型',
member_card_status: '会员卡类状态',
onceList: '次卡',
loss_time: '流失时间',
birthday: '按生日',
petSpecies: '按品种',
petAge: '年龄',
sex: '客户性别',
balance: '储值',
lastConsumption: '消费记录',
};
取值:
let tempName = this.keyParms[type];
this._commonService.sendStatistics('筛选会员',tempName); //统计函数
数组形式:
//统计参数映射中文表
keyStr: any =[
{
key: 'memberCard',
name: '会员卡',
},
{
key: 'prescription_status',
name: '会员卡类型',
},
{
key: 'member_card_status',
name: '会员卡类状态',
},
{
key: 'onceList',
name: '次卡',
},
{
key: 'loss_time',
name: '流失时间',
},
{
key: 'birthday',
name: '按生日',
},
{
key: 'petSpecies',
name: '按品种',
},
{
key: 'petAge',
name: '年龄',
},
{
key: 'sex',
name: '客户性别',
},
{
key: 'balance',
name: '储值',
},
{
key: 'lastConsumption',
name: '消费记录',
},
]