From b79a8c060c9d44b9ed83c878d4a99339f9cd3ad8 Mon Sep 17 00:00:00 2001 From: Caps <452713115@qq.com> Date: Fri, 24 Apr 2020 23:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/IncreaseDataCompany.vue | 57 ++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 4 deletions(-) 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: '删除/拉黑成员客户数(累计)',