|
@@ -130,7 +130,20 @@
|
130
|
130
|
</el-table-column>
|
131
|
131
|
</el-table>
|
132
|
132
|
|
133
|
|
-
|
|
133
|
+ <el-table :data="punishmentRecord" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
|
|
134
|
+ style="width: 100%">
|
|
135
|
+ <el-table-column label="懲罰名單" align="center">
|
|
136
|
+ <el-table-column prop="GambleMember.name" label="玩家">
|
|
137
|
+ </el-table-column>
|
|
138
|
+ <el-table-column label="原因">
|
|
139
|
+ <template slot-scope="scope">
|
|
140
|
+ <div>{{reason(scope.row.rule)}}</div>
|
|
141
|
+ </template>
|
|
142
|
+ </el-table-column>
|
|
143
|
+ <el-table-column prop="chips" label="金額">
|
|
144
|
+ </el-table-column>
|
|
145
|
+ </el-table-column>
|
|
146
|
+ </el-table>
|
134
|
147
|
<el-table :data="members" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
|
135
|
148
|
style="width: 100%">
|
136
|
149
|
<el-table-column label="當前玩家餘額" align="center">
|
|
@@ -158,7 +171,7 @@
|
158
|
171
|
<script>
|
159
|
172
|
|
160
|
173
|
import { mapGetters, mapActions } from 'vuex'
|
161
|
|
-import { fetchDetails, fetchRoundCount, fetchDealingRecords, fetchMemberRecords, fetchRoundRecord, fetchGameBid, fetchWagerRecord, fetchMemberInfo } from '@/api/gambleGameBucket'
|
|
174
|
+import { fetchDetails, fetchRoundCount, fetchDealingRecords, fetchMemberRecords, fetchRoundRecord, fetchGameBid, fetchWagerRecord, fetchMemberInfo, fetchPunishmentRecord } from '@/api/gambleGameBucket'
|
162
|
175
|
import { fetchGambleMemberList } from '@/api/gambleMember'
|
163
|
176
|
import { ponitTransform } from '@/utils/point'
|
164
|
177
|
import _ from 'lodash'
|
|
@@ -187,6 +200,7 @@ export default {
|
187
|
200
|
memberRecord: [],
|
188
|
201
|
door: 0,
|
189
|
202
|
// bidChips: 0,
|
|
203
|
+ punishmentRecord: [],
|
190
|
204
|
memberRecordTemp: [],
|
191
|
205
|
wagerRecord: [],
|
192
|
206
|
}
|
|
@@ -324,7 +338,9 @@ export default {
|
324
|
338
|
|
325
|
339
|
this.func = eval(`(function() {${this.statement}})`)
|
326
|
340
|
})
|
327
|
|
-
|
|
341
|
+ fetchPunishmentRecord(this.data.secondLayer, this.listQuery).then(response => {
|
|
342
|
+ this.punishmentRecord = response.data
|
|
343
|
+ })
|
328
|
344
|
fetchMemberInfo(this.data.secondLayer, this.listQuery).then(response => {
|
329
|
345
|
let { data } = response
|
330
|
346
|
let members = {}
|
|
@@ -408,6 +424,18 @@ export default {
|
408
|
424
|
},
|
409
|
425
|
initDoor({row, column, rowIndex, columnIndex}) {
|
410
|
426
|
return columnIndex === this.door ? { color: '#F56C6C' } : ``
|
|
427
|
+ },
|
|
428
|
+ reason(reason ){
|
|
429
|
+ switch(reason) {
|
|
430
|
+ case 'NO_DRAW_RIGHTS':
|
|
431
|
+ return '亂抽紅包'
|
|
432
|
+ break;
|
|
433
|
+ case 'NO_RESPONSE':
|
|
434
|
+ return '門主未抽紅包'
|
|
435
|
+ break;
|
|
436
|
+ default:
|
|
437
|
+ return '請找客服'
|
|
438
|
+ }
|
411
|
439
|
}
|
412
|
440
|
},
|
413
|
441
|
destroyed() {
|