Commit 93c886e8 by caoyanzhi

update: ai营销

parent 73fda6e3
......@@ -148,10 +148,10 @@ export default {
methods: {
getPlanStatistics() {
getPlanStatistics({ activityId: this.activityId, planId: this.planId }).then(res => {
if (!Array.isArray(res.result) || res.result.length == 0) {
return;
if (!Array.isArray(res.result)) {
res.result = [];
}
const targetData = res.result[0];
const targetData = res.result.length > 0 ? res.result[0] : {};
this.targetList = this.targetList.map(el => {
return el.map(item => {
const value = targetData[item.key];
......@@ -173,6 +173,9 @@ export default {
});
});
if (targetData.marketingNumber == null && targetData.reachNumber == null && targetData.conversionNumber == null) {
return;
}
let data = [
{ action: '营销人数', label: '营销率', count: targetData.marketingNumber, rate: '' },
{ action: '触达人数', label: '触达率', count: targetData.reachNumber, rate: targetData.reachRate },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment