From 76cc5a627364d4e2e86822c3b1676dd262f831db Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Wed, 27 Jul 2022 15:48:20 +0800
Subject: [PATCH] 30625
---
.../AppPropagandaStatistics.vue | 22 +++++--------------
1 file changed, 6 insertions(+), 16 deletions(-)
diff --git a/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue b/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue
index 088b6928..68fa4f9f 100644
--- a/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue
+++ b/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue
@@ -63,15 +63,15 @@
创建宣发任务数
-
{{ peopleNum || 0 }}
+
{{ data.createCount || 0 }}
执行宣发次数
-
{{ sendNum || 0 }}
+
{{ data.executeCount || 0 }}
触达人次
-
{{ predictNum || 0 }}
+
{{ data.receiveCount || 0 }}
触达人次
@@ -232,10 +232,8 @@ export default {
resY: [],
res2Y: [],
res3Y: [],
- peopleNum: "",
- sendNum: "",
- predictNum: "",
- colData: []
+ colData: [],
+ data: {}
};
},
@@ -348,6 +346,7 @@ export default {
})
.then((res) => {
if (res?.data) {
+ this.data = res.data;
if (this.timeType == 0) {
this.resX = res.data.trend.map(
(e) =>
@@ -365,17 +364,8 @@ export default {
);
}
this.resY = res.data.trend.map((e) => e.receiveCount);
- this.peopleNum = this.resY.reduce((accumulator, currentValue) => {
- return accumulator + currentValue;
- });
this.res2Y = res.data.trend.map((e) => e.executeCount);
- this.sendNum = this.res2Y.reduce((accumulator, currentValue) => {
- return accumulator + currentValue;
- });
this.res3Y = res.data.trend.map((e) => e.createCount);
- this.predictNum = this.res3Y.reduce((accumulator, currentValue) => {
- return accumulator + currentValue;
- });
this.getBrokenEcharts1();
this.getBrokenEcharts2();
this.getBrokenEcharts3();