|
@@ -453,6 +453,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getSummaries(param) {
|
|
getSummaries(param) {
|
|
|
|
|
+ let totalNum = 0;
|
|
|
const { columns, data } = param;
|
|
const { columns, data } = param;
|
|
|
const sums = [];
|
|
const sums = [];
|
|
|
columns.forEach((column, index) => {
|
|
columns.forEach((column, index) => {
|
|
@@ -471,7 +472,16 @@ export default {
|
|
|
return prev;
|
|
return prev;
|
|
|
}
|
|
}
|
|
|
}, 0);
|
|
}, 0);
|
|
|
-
|
|
|
|
|
|
|
+ //第三列计数为进线数量和
|
|
|
|
|
+ if(index === 3){
|
|
|
|
|
+ totalNum = sums[index];
|
|
|
|
|
+ }
|
|
|
|
|
+ if(index > 3 && totalNum != 0){
|
|
|
|
|
+ sums[index] = sums[index] + "("+ ((sums[index] / totalNum) * 100).toFixed(2) + "%)"
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log("===================");
|
|
|
|
|
+ console.log("index" + index + ",sums[index]"+ sums[index])
|
|
|
|
|
+ console.log("===================");
|
|
|
if (
|
|
if (
|
|
|
column.property === "firstOnline" ||
|
|
column.property === "firstOnline" ||
|
|
|
column.property === "firstOver" ||
|
|
column.property === "firstOver" ||
|