|
|
|
|
55
|
</el-table>
|
55
|
</el-table>
|
56
|
<el-table show-summary :summary-method="getSummaries" :data="combine" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row>
|
56
|
<el-table show-summary :summary-method="getSummaries" :data="combine" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row>
|
57
|
<el-table-column :label="`${(this.data.secondLayer.GambleMember.name).slice(19)}的會員`" align="center">
|
57
|
<el-table-column :label="`${(this.data.secondLayer.GambleMember.name).slice(19)}的會員`" align="center">
|
|
|
58
|
+ <el-table-column label="當莊次數" prop="bookieCount" align="center"></el-table-column>
|
58
|
<el-table-column label="名稱" align="center">
|
59
|
<el-table-column label="名稱" align="center">
|
59
|
<template slot-scope="scope">
|
60
|
<template slot-scope="scope">
|
60
|
<span>{{scope.row.name}}</span>
|
61
|
<span>{{scope.row.name}}</span>
|
|
|
|
|
347
|
const { columns, data } = param;
|
348
|
const { columns, data } = param;
|
348
|
let sums = [];
|
349
|
let sums = [];
|
349
|
columns.forEach((column, index) => {
|
350
|
columns.forEach((column, index) => {
|
350
|
- if (index === 0) {
|
|
|
351
|
- sums[index] = '合計';
|
|
|
352
|
- return;
|
|
|
353
|
- }
|
|
|
354
|
const values = data.map(item => Number(item[column.property]));
|
351
|
const values = data.map(item => Number(item[column.property]));
|
355
|
if (!values.every(value => isNaN(value))) {
|
352
|
if (!values.every(value => isNaN(value))) {
|
356
|
sums[index] = values.reduce((prev, curr) => {
|
353
|
sums[index] = values.reduce((prev, curr) => {
|