This commit is contained in:
shijingjing
2022-07-27 15:48:20 +08:00
parent bf51401224
commit 76cc5a6273

View File

@@ -63,15 +63,15 @@
<div class="broken_statistics">
<div class="broken_item">
<div>创建宣发任务数</div>
<div>{{ peopleNum || 0 }}</div>
<div>{{ data.createCount || 0 }}</div>
</div>
<div class="broken_item">
<div>执行宣发次数</div>
<div>{{ sendNum || 0 }}</div>
<div>{{ data.executeCount || 0 }}</div>
</div>
<div class="broken_item">
<div>触达人次</div>
<div>{{ predictNum || 0 }}</div>
<div>{{ data.receiveCount || 0 }}</div>
</div>
</div>
<div class="title" >触达人次</div>
@@ -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();