|
@@ -54,7 +54,7 @@
|
54
|
54
|
</el-table-column>
|
55
|
55
|
</el-table>
|
56
|
56
|
<el-table :data="combine" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row>
|
57
|
|
- <el-table-column :label="`${this.agent.GambleMember.name}的會員`" align="center">
|
|
57
|
+ <el-table-column :label="`${this.data.secondLayer.GambleMember.name}的會員`" align="center">
|
58
|
58
|
<el-table-column label="名稱" align="center">
|
59
|
59
|
<template slot-scope="scope">
|
60
|
60
|
<span>{{scope.row.name}}</span>
|
|
@@ -126,7 +126,7 @@
|
126
|
126
|
</el-table>
|
127
|
127
|
|
128
|
128
|
</div>
|
129
|
|
- <router-view :member="member"></router-view>
|
|
129
|
+ <router-view></router-view>
|
130
|
130
|
</div>
|
131
|
131
|
</template>
|
132
|
132
|
|
|
@@ -149,7 +149,7 @@ export default {
|
149
|
149
|
// chipLogList: [],
|
150
|
150
|
// gameRecordList: [],
|
151
|
151
|
list: [],
|
152
|
|
- member: {},
|
|
152
|
+ // member: {},
|
153
|
153
|
dialogList: null,
|
154
|
154
|
total: null,
|
155
|
155
|
listLoading: true,
|
|
@@ -189,19 +189,21 @@ export default {
|
189
|
189
|
},
|
190
|
190
|
computed: {
|
191
|
191
|
...mapGetters([
|
192
|
|
- 'visible'
|
|
192
|
+ 'visible',
|
|
193
|
+ 'data',
|
193
|
194
|
])
|
194
|
195
|
},
|
195
|
|
- props: ['agent'],
|
|
196
|
+ // props: ['agent'],
|
196
|
197
|
methods: {
|
197
|
198
|
...mapActions([
|
198
|
|
- 'SetVisible'
|
|
199
|
+ 'SetVisible',
|
|
200
|
+ 'SetData',
|
199
|
201
|
]),
|
200
|
202
|
getList() {
|
201
|
203
|
this.listLoading = true
|
202
|
204
|
this.allCombine = []
|
203
|
205
|
this.combine = []
|
204
|
|
- fetchMemberList(this.agent, this.listQuery).then(response => {
|
|
206
|
+ fetchMemberList(this.data.secondLayer, this.listQuery).then(response => {
|
205
|
207
|
// this.memberRecord = response.data.rows
|
206
|
208
|
console.log(response.data.rows)
|
207
|
209
|
response.data.rows.map(member => {
|
|
@@ -224,11 +226,11 @@ export default {
|
224
|
226
|
let bookie = _.groupBy(member['GambleGame-Bucket-MemberRecords'], 'isBookie')
|
225
|
227
|
if (bookie.false) {
|
226
|
228
|
row.memberEarned = _.sumBy(bookie.false, 'earned');
|
227
|
|
- row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.agent.feeRatio/100;
|
|
229
|
+ row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.data.secondLayer.feeRatio/100;
|
228
|
230
|
}
|
229
|
231
|
if (bookie.true) {
|
230
|
232
|
row.bookieEarned = _.sumBy(bookie.true, 'earned');
|
231
|
|
- row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees-500; })*this.agent.feeRatio/100;
|
|
233
|
+ row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees-500; })*this.data.secondLayer.feeRatio/100;
|
232
|
234
|
}
|
233
|
235
|
row.totalServiceFees = new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).valueOf()
|
234
|
236
|
|
|
@@ -258,7 +260,7 @@ export default {
|
258
|
260
|
})
|
259
|
261
|
|
260
|
262
|
this.allCombine.push({
|
261
|
|
- name: this.agent.GambleMember.name,
|
|
263
|
+ name: this.data.secondLayer.GambleMember.name,
|
262
|
264
|
allUp: _.sumBy(this.combine, 'totalUp'),
|
263
|
265
|
allDown: _.sumBy(this.combine, 'totalDown'),
|
264
|
266
|
allChips: _.sumBy(this.combine, 'chips'),
|
|
@@ -273,7 +275,7 @@ export default {
|
273
|
275
|
handlePersonDetail(row) {
|
274
|
276
|
const temp = Object.assign({}, row) // copy obj
|
275
|
277
|
this.SetVisible(3)
|
276
|
|
- this.member = temp
|
|
278
|
+ this.SetData({layer:3, data: temp})
|
277
|
279
|
},
|
278
|
280
|
handleFilter() {
|
279
|
281
|
this.listQuery.page = 1
|