diff --git a/src/pages/shop/IncreaseDataCompany.vue b/src/pages/shop/IncreaseDataCompany.vue index 3c2a83a..5761aec 100644 --- a/src/pages/shop/IncreaseDataCompany.vue +++ b/src/pages/shop/IncreaseDataCompany.vue @@ -63,19 +63,68 @@ }, { title: '新增好友数', - key: 'newCustomer' + key: 'newCustomer', + render: (h, params) => { + let that = this; + if(that.data1[params.index].newCustomer != null){ + return h('div', [ + h('span', {}, that.data1[params.index].newCustomer), + ]) + }else { + return h('div', [ + h('span', {}, '0'), + ]) + } + + } }, { title: '新增好友数(去重)', - key: 'newEffectiveCustomer' + key: 'newEffectiveCustomer', + render: (h, params) => { + let that = this; + if(that.data1[params.index].newEffectiveCustomer != null){ + return h('div', [ + h('span', {}, that.data1[params.index].newEffectiveCustomer), + ]) + }else { + return h('div', [ + h('span', {}, '0'), + ]) + } + } }, { title: '日增好友平均', - key: 'avgNewCustomer' + key: 'avgNewCustomer', + render: (h, params) => { + let that = this; + if(that.data1[params.index].avgNewCustomer != null){ + return h('div', [ + h('span', {}, that.data1[params.index].avgNewCustomer), + ]) + }else { + return h('div', [ + h('span', {}, '0'), + ]) + } + } }, { title: '日增好友平均(去重)', - key: 'avgNewEffectiveCustomer' + key: 'avgNewEffectiveCustomer', + render: (h, params) => { + let that = this; + if(that.data1[params.index].avgNewEffectiveCustomer != null){ + return h('div', [ + h('span', {}, that.data1[params.index].avgNewEffectiveCustomer), + ]) + }else { + return h('div', [ + h('span', {}, '0'), + ]) + } + } }, { title: '删除/拉黑成员客户数(累计)',