|
@@ -28,6 +28,15 @@
|
28
|
28
|
<el-table-column prop="MemberRecord.GambleMember.chips" label="最終積分">
|
29
|
29
|
</el-table-column>
|
30
|
30
|
</el-table>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+ <el-table :data="member_0" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
|
|
34
|
+ style="width: 100%">
|
|
35
|
+ <el-table-column prop="name" label="成員" width="%">
|
|
36
|
+ </el-table-column>
|
|
37
|
+ <el-table-column prop="chips" label="當前積分" width="100%">
|
|
38
|
+ </el-table-column>
|
|
39
|
+ </el-table>
|
31
|
40
|
</div>
|
32
|
41
|
</template>
|
33
|
42
|
|
|
@@ -35,6 +44,7 @@
|
35
|
44
|
|
36
|
45
|
import { mapGetters, mapActions } from 'vuex'
|
37
|
46
|
import { fetchDetails, fetchRoundCount } from '@/api/gambleGameBucket'
|
|
47
|
+import { fetchList } from '@/api/gambleMember'
|
38
|
48
|
import _ from 'lodash'
|
39
|
49
|
|
40
|
50
|
export default {
|
|
@@ -53,7 +63,11 @@ export default {
|
53
|
63
|
func: '',
|
54
|
64
|
rowIndex: 0,
|
55
|
65
|
colIndex: 0,
|
56
|
|
- roundOptions: []
|
|
66
|
+ roundOptions: [],
|
|
67
|
+ member_0: [],
|
|
68
|
+ member_1: [],
|
|
69
|
+ member_2: [],
|
|
70
|
+ member_3: [],
|
57
|
71
|
}
|
58
|
72
|
},
|
59
|
73
|
props: ['bucket'],
|
|
@@ -65,6 +79,20 @@ export default {
|
65
|
79
|
})
|
66
|
80
|
this.SetListVisble(false)
|
67
|
81
|
this.getList()
|
|
82
|
+ fetchList({page: 1, limit: 9999999999, chipsSort: 'DESC',}).then( response => {
|
|
83
|
+ let { rows } = response.data
|
|
84
|
+ rows.map((person,index) => {
|
|
85
|
+ if(index%4===0){
|
|
86
|
+ this.member_0.push(person)
|
|
87
|
+ }else if(index%4===1){
|
|
88
|
+ this.member_1.push(person)
|
|
89
|
+ }else if(index%4 === 2){
|
|
90
|
+ this.member_2.push(person)
|
|
91
|
+ }else if(index%4 === 3 ){
|
|
92
|
+ this.member_3.push(person)
|
|
93
|
+ }
|
|
94
|
+ })
|
|
95
|
+ })
|
68
|
96
|
},
|
69
|
97
|
computed: {
|
70
|
98
|
...mapGetters([
|