This commit is contained in:
yanran200730
2023-03-02 09:12:11 +08:00
parent 08a91c64db
commit b042f60e41
2 changed files with 27 additions and 7 deletions

View File

@@ -42,7 +42,7 @@
<ai-info-item label="群发范围" isLine>
<div class="text">
<span>{{ info.sendScope === '0' ? '全部' : '按条件筛选的' }}</span>
<i>{{ info.executorList.length }}</i>
<i>{{ totalLength }}</i>
<span>个居民</span>
<em @click="isShowGroups = true">详情</em>
</div>
@@ -144,7 +144,7 @@
<ai-info-item label="消息发送" isLine :value="info.taskTitle">
<div class="text">
<span>{{ info.sendScope === '0' ? '全部' : '按条件筛选的' }}</span>
<i>{{ info.executorList.length }}</i>
<i>{{ totalLength }}</i>
<span>个居民</span>
</div>
</ai-info-item>
@@ -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 () {