|
@@ -124,7 +124,7 @@
|
124
|
124
|
</el-table-column>
|
125
|
125
|
<el-table-column label="最終積分">
|
126
|
126
|
<template slot-scope="scope">
|
127
|
|
- <div>{{scope.row.MemberRecord.currentChips+scope.row.MemberRecord.chips}}</div>
|
|
127
|
+ <div>{{scope.row.MemberRecord.currentChips}}</div>
|
128
|
128
|
</template>
|
129
|
129
|
</el-table-column>
|
130
|
130
|
</el-table-column>
|
|
@@ -270,10 +270,21 @@ export default {
|
270
|
270
|
return record.MemberRecord.GambleMember.name
|
271
|
271
|
})
|
272
|
272
|
this.group = Object.values(this.group)
|
273
|
|
-
|
|
273
|
+ console.log('wwww', this.group)
|
|
274
|
+
|
|
275
|
+ this.group.map(member => {
|
|
276
|
+ // console.log('aaaaa', member)
|
|
277
|
+ let currentChips = _.sumBy(member, record => {
|
|
278
|
+ return record.MemberRecord.chips
|
|
279
|
+ }) + member[0].MemberRecord.currentChips
|
|
280
|
+ for(const item of member) {
|
|
281
|
+ item.MemberRecord.currentChips = currentChips
|
|
282
|
+ }
|
|
283
|
+ })
|
274
|
284
|
this.detail = this.group.reduce((arr, element) => {
|
275
|
285
|
return arr.concat(element)
|
276
|
286
|
}, [])
|
|
287
|
+ console.log('eee', this.detail)
|
277
|
288
|
this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
|
278
|
289
|
return Math.abs(item.MemberRecord.earned) ;
|
279
|
290
|
})
|