|
@@ -62,7 +62,7 @@
|
62
|
62
|
<el-table-column label="莊家" prop="MemberRecord.GambleMember.name"></el-table-column>
|
63
|
63
|
<el-table-column label="點數">
|
64
|
64
|
<template slot-scope="scope">
|
65
|
|
- <span>{{`${scope.row.DealingRecord.point1} | ${scope.row.DealingRecord.point2} / ${scope.row.DealingRecord.totalPoints}`}}</span>
|
|
65
|
+ <span>{{`${scope.row.DealingRecord.point1} | ${scope.row.DealingRecord.point2} / ${point(scope.row.DealingRecord)}`}}</span>
|
66
|
66
|
</template>
|
67
|
67
|
</el-table-column>
|
68
|
68
|
<el-table-column label="上莊分數" prop="bidChips"></el-table-column>
|
|
@@ -90,7 +90,7 @@
|
90
|
90
|
</el-table-column>
|
91
|
91
|
<el-table-column prop="DealingRecord.totalPoints" label="點數">
|
92
|
92
|
<template slot-scope="scope">
|
93
|
|
- <span>{{`${scope.row.DealingRecord.point1} | ${scope.row.DealingRecord.point2} / ${scope.row.DealingRecord.totalPoints}`}}</span>
|
|
93
|
+ <span>{{`${scope.row.DealingRecord.point1} | ${scope.row.DealingRecord.point2} / ${point(scope.row.DealingRecord)}`}}</span>
|
94
|
94
|
</template>
|
95
|
95
|
</el-table-column>
|
96
|
96
|
<el-table-column label="輸贏">
|
|
@@ -140,6 +140,7 @@
|
140
|
140
|
import { mapGetters, mapActions } from 'vuex'
|
141
|
141
|
import { fetchDetails, fetchRoundCount, fetchDealingRecords, fetchMemberRecords } from '@/api/gambleGameBucket'
|
142
|
142
|
import { fetchGambleMemberList } from '@/api/gambleMember'
|
|
143
|
+import { ponitTransform } from '@/utils/point'
|
143
|
144
|
import _ from 'lodash'
|
144
|
145
|
import moment from 'moment-timezone'
|
145
|
146
|
|
|
@@ -323,6 +324,7 @@ export default {
|
323
|
324
|
return sums
|
324
|
325
|
},
|
325
|
326
|
handleFilter() {
|
|
327
|
+ this.SetQuery({layer:2, query: {round: this.query.secondLayer.round}})
|
326
|
328
|
this.dealing = []
|
327
|
329
|
this.getList()
|
328
|
330
|
},
|
|
@@ -335,7 +337,7 @@ export default {
|
335
|
337
|
// TODO refactor
|
336
|
338
|
doorTableSwitch(rowIndex, colIndex) {
|
337
|
339
|
if (rowIndex === 0) {
|
338
|
|
- return `${this.dealing[0][`point1_${colIndex}`]} | ${this.dealing[0][`point2_${colIndex}`]} / ${this.dealing[0][`totalPoints_${colIndex}`]}`
|
|
340
|
+ return `${this.dealing[0][`point1_${colIndex}`]} | ${this.dealing[0][`point2_${colIndex}`]} / ${this.point({point1: this.dealing[0][`point1_${colIndex}`] ,point2: this.dealing[0][`point2_${colIndex}`] ,totalPoints: this.dealing[0][`totalPoints_${colIndex}`]})}`
|
339
|
341
|
}
|
340
|
342
|
if (rowIndex === 1) {
|
341
|
343
|
return this.dealing[1][`member_${colIndex}`] ? `${this.dealing[1][`member_${colIndex}`]}` : 'N/A'
|
|
@@ -347,6 +349,9 @@ export default {
|
347
|
349
|
count += this.group[j].length
|
348
|
350
|
}
|
349
|
351
|
return count
|
|
352
|
+ },
|
|
353
|
+ point(dealingRecord) {
|
|
354
|
+ return ponitTransform(dealingRecord)
|
350
|
355
|
}
|
351
|
356
|
},
|
352
|
357
|
destroyed() {
|