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

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 () {