bucket 6 years ago
parent
commit
f2655685d9

+ 9 - 6
src/views/agnetManagement/gambleMemberManagement/index.vue

176
       this.listLoading = true
176
       this.listLoading = true
177
       this.allCombine = []
177
       this.allCombine = []
178
       this.combine = []
178
       this.combine = []
179
+       let combine = []
179
       await fetchMemberList(this.data.secondLayer, this.listQuery).then(response => {
180
       await fetchMemberList(this.data.secondLayer, this.listQuery).then(response => {
181
+       
180
         response.data.rows.map(member => {
182
         response.data.rows.map(member => {
181
           let row = {
183
           let row = {
182
             id: member.id,
184
             id: member.id,
253
           }
255
           }
254
           // console.log('www',row)
256
           // console.log('www',row)
255
 
257
 
256
-          this.combine.push(row)
258
+          combine.push(row)
257
         })
259
         })
258
         // console.log('cimbine' , this.combine)
260
         // console.log('cimbine' , this.combine)
259
         this.allCombine.push({
261
         this.allCombine.push({
260
           name: (this.data.secondLayer.GambleMember.name).slice(19),
262
           name: (this.data.secondLayer.GambleMember.name).slice(19),
261
-          allUp: _.sumBy(this.combine, 'totalUp'),
262
-          allDown: _.sumBy(this.combine, 'totalDown'),
263
-          allChips: _.sumBy(this.combine, 'chips'),
264
-          allEarned: _.sumBy(this.combine, (item) => {return item.bookieEarned + item.memberEarned}),
265
-          allServiceFees: _.sumBy(this.combine, (item) => {return item.totalServiceFees }).toFixed(2),
263
+          allUp: _.sumBy(combine, 'totalUp'),
264
+          allDown: _.sumBy(combine, 'totalDown'),
265
+          allChips: _.sumBy(combine, 'chips'),
266
+          allEarned: _.sumBy(combine, (item) => {return item.bookieEarned + item.memberEarned}),
267
+          allServiceFees: _.sumBy(combine, (item) => {return item.totalServiceFees }).toFixed(2),
266
         })
268
         })
269
+        this.combine = combine
267
         this.listLoading = false
270
         this.listLoading = false
268
       })
271
       })
269
       
272
       

+ 1 - 1
src/views/gambleGameBucket/detail/index.vue

425
       memberRecordTemp: [],
425
       memberRecordTemp: [],
426
       wagerRecord: [],
426
       wagerRecord: [],
427
       roundTime: 0,
427
       roundTime: 0,
428
-      dialogVisible: true,
428
+      dialogVisible: false,
429
     }
429
     }
430
   },
430
   },
431
   async created() {
431
   async created() {