|
@@ -22,7 +22,12 @@
|
22
|
22
|
{{scope.row.admin}}
|
23
|
23
|
</template>
|
24
|
24
|
</el-table-column>
|
25
|
|
- <el-table-column label="上下分" align="center">
|
|
25
|
+ <el-table-column label="操作" align="center">
|
|
26
|
+ <template slot-scope="scope">
|
|
27
|
+ {{typeName(scope.row.type)}}
|
|
28
|
+ </template>
|
|
29
|
+ </el-table-column>
|
|
30
|
+ <el-table-column label="點數" align="center">
|
26
|
31
|
<template slot-scope="scope">
|
27
|
32
|
<span :style="moneyColor(scope.row.chips)">{{scope.row.chips}}</span>
|
28
|
33
|
</template>
|
|
@@ -55,6 +60,7 @@ import { mapActions, mapGetters } from 'vuex'
|
55
|
60
|
import { fetchChipsHistory } from '@/api/gambleMember'
|
56
|
61
|
import waves from '@/directive/waves' // 水波纹指令
|
57
|
62
|
import moment from 'moment-timezone'
|
|
63
|
+import config from '../../../../config'
|
58
|
64
|
|
59
|
65
|
export default {
|
60
|
66
|
directives: {
|
|
@@ -166,6 +172,14 @@ export default {
|
166
|
172
|
},
|
167
|
173
|
moneyColor(money) {
|
168
|
174
|
return money >= 0 ? { color: '#67C23A' } : { color: '#FA5555' }
|
|
175
|
+ },
|
|
176
|
+ typeName(type) {
|
|
177
|
+ if(type === config.const.GambleMemberChipsLog.type.deposit) {
|
|
178
|
+ return `上 / 下 分`
|
|
179
|
+ }
|
|
180
|
+ if(type === config.const.GambleMemberChipsLog.type.reward) {
|
|
181
|
+ return `獎勵 / 懲罰`
|
|
182
|
+ }
|
169
|
183
|
}
|
170
|
184
|
},
|
171
|
185
|
destroyed() {
|