From b042f60e41edf11bf0ca4546ca1c8218c8c4e1e3 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 2 Mar 2023 09:12:11 +0800 Subject: [PATCH] bug --- .../AppAnnounceResident/components/Detail.vue | 18 ++++++++++++++---- .../AppAnnounceWeChat/components/Detail.vue | 16 +++++++++++++--- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/packages/wxwork/AnnounceResident/AppAnnounceResident/components/Detail.vue b/packages/wxwork/AnnounceResident/AppAnnounceResident/components/Detail.vue index 59445940..1b3627f8 100644 --- a/packages/wxwork/AnnounceResident/AppAnnounceResident/components/Detail.vue +++ b/packages/wxwork/AnnounceResident/AppAnnounceResident/components/Detail.vue @@ -42,7 +42,7 @@
{{ info.sendScope === '0' ? '全部' : '按条件筛选的' }} - {{ info.groupList.length }} + {{ totalLength }} 个居民 详情
@@ -156,7 +156,7 @@
{{ info.sendScope === '0' ? '全部' : '按条件筛选的' }} - {{ info.groupList.length }} + {{ totalLength }} 个居民
@@ -216,7 +216,7 @@ currIndex: 0, colConfigs1: [ { slot: 'user', label: '员工' }, - { prop: 'groupCount', label: '预计送达居民', align: 'center' } + { prop: 'customerCount', label: '预计送达居民', align: 'center' } ], groups: [], timer: null, @@ -228,7 +228,17 @@ }, computed: { - ...mapState(['user']) + ...mapState(['user']), + + totalLength () { + if (!this.info.groupList) { + return 0 + } + + return this.info.groupList.map(v => v.customerCount).reduce((prev, cur) => { + return prev + cur + }, 0) + } }, created () { diff --git a/packages/wxwork/AnnounceWeChat/AppAnnounceWeChat/components/Detail.vue b/packages/wxwork/AnnounceWeChat/AppAnnounceWeChat/components/Detail.vue index 2ade78d6..73eaa0c2 100644 --- a/packages/wxwork/AnnounceWeChat/AppAnnounceWeChat/components/Detail.vue +++ b/packages/wxwork/AnnounceWeChat/AppAnnounceWeChat/components/Detail.vue @@ -42,7 +42,7 @@
{{ info.sendScope === '0' ? '全部' : '按条件筛选的' }} - {{ info.executorList.length }} + {{ totalLength }} 个居民 详情
@@ -144,7 +144,7 @@
{{ info.sendScope === '0' ? '全部' : '按条件筛选的' }} - {{ info.executorList.length }} + {{ totalLength }} 个居民
@@ -217,7 +217,17 @@ }, computed: { - ...mapState(['user']) + ...mapState(['user']), + + totalLength () { + if (!this.info.executorList) { + return 0 + } + + return this.info.executorList.map(v => v.customerCount).reduce((prev, cur) => { + return prev + cur + }, 0) + } }, created () {