|
|
@@ -18,14 +18,14 @@
|
|
|
<div class="overview-card">
|
|
|
<div class="overview-icon"><i class="fas fa-paper-plane"></i></div>
|
|
|
<div class="overview-info">
|
|
|
- <div class="overview-value">{{ total.sendTotal }}</div>
|
|
|
+ <div class="overview-value">{{ todayData.totalSendCount }}</div>
|
|
|
<div class="overview-label">总发送</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="overview-card">
|
|
|
<div class="overview-icon"><i class="fas fa-reply"></i></div>
|
|
|
<div class="overview-info">
|
|
|
- <div class="overview-value">{{ Math.round(total.replyRate) }}%</div>
|
|
|
+ <div class="overview-value">{{ todayData.customerReplyRate * 100 }}%</div>
|
|
|
<div class="overview-label">平均回复率</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -253,10 +253,6 @@
|
|
|
])
|
|
|
|
|
|
const emailList = ref([])
|
|
|
- const total = ref({
|
|
|
- sendTotal: 0,
|
|
|
- replyRate: 0
|
|
|
- })
|
|
|
const open = (list) => {
|
|
|
showEmailModal.value = true
|
|
|
emailList.value = list || []
|
|
|
@@ -268,8 +264,6 @@
|
|
|
emailList.value.map(item => {
|
|
|
item.accountTotal = res.result.find(acc => acc.outboxId === item.id) || {}
|
|
|
})
|
|
|
- total.value.sendTotal = emailList.value.reduce((sum, a) => sum + (a.accountTotal.sendCount || 0), 0)
|
|
|
- total.value.replyRate = emailList.value.reduce((sum, a) => sum + (a.accountTotal.replyRate || 0), 0) / emailList.value.length
|
|
|
})
|
|
|
}
|
|
|
getOther()
|