diff --git a/src/views/Statistics/ConsultantBrand.vue b/src/views/Statistics/ConsultantBrand.vue index 3cb0738..610d4ee 100644 --- a/src/views/Statistics/ConsultantBrand.vue +++ b/src/views/Statistics/ConsultantBrand.vue @@ -98,7 +98,12 @@ - + { @@ -610,7 +618,7 @@ export default { obj.name = item.accountName; obj.zxl = Math.floor(item.sumDuration / 60); if (max < obj.zxl) { - max = obj.zxl + max = obj.zxl; } arr.push(obj); } else if (type == 3) { @@ -625,10 +633,10 @@ export default { }); } - if(type == 2) { + if (type == 2) { arr.forEach((item) => { - item.percentage = (item.zxl/max)*100 - }) + item.percentage = (item.zxl / max) * 100; + }); } if (type == 3) { @@ -636,7 +644,10 @@ export default { } if (type == 4) { - console.log(arr, 'arr4,ajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjaksl') + console.log( + arr, + "arr4,ajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjaksl" + ); arr = this.dealData(arr); } return arr; diff --git a/src/views/Statistics/ReceptionStatistical.vue b/src/views/Statistics/ReceptionStatistical.vue index 0e5e7cb..da7b260 100644 --- a/src/views/Statistics/ReceptionStatistical.vue +++ b/src/views/Statistics/ReceptionStatistical.vue @@ -1,98 +1,108 @@