Bladeren bron

add bookie column

ethan 6 jaren geleden
bovenliggende
commit
e610502687
2 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. 5 0
      src/views/gambleGameBucket/detail/index.vue
  2. 5 0
      src/views/room/detail/index.vue

+ 5 - 0
src/views/gambleGameBucket/detail/index.vue

@@ -65,6 +65,8 @@
65 65
               <div>{{scope.row.currentChips}}</div>
66 66
             </template>
67 67
           </el-table-column>  
68
+          <el-table-column label="閒家輸贏" prop="effectiveWagger"></el-table-column>          
69
+          <el-table-column label="閒家抽水" prop="effectiveServiceFees"></el-table-column>
68 70
         </el-table-column>             
69 71
       </el-table-column>                   
70 72
     </el-table>
@@ -320,6 +322,9 @@ export default {
320 322
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
321 323
           return Math.abs(item.MemberRecord.earned) ;
322 324
         })
325
+        this.bookie[0].effectiveServiceFees = _.sumBy(this.detail, item => {
326
+          return Math.abs(item.MemberRecord.serviceFees) ;
327
+        })
323 328
         console.log('ssss', this.detail)
324 329
         this.bookie[0].currentChips = Number(this.bookie[0].MemberRecord.currentChips) + Number(this.bookie[0].MemberRecord.chips)
325 330
         this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees - this.bookie[0].MemberRecord.wagerServiceFees -this.bookie[0].MemberRecord.FixedServiceFees

+ 5 - 0
src/views/room/detail/index.vue

@@ -65,6 +65,8 @@
65 65
               <div>{{scope.row.currentChips}}</div>
66 66
             </template>
67 67
           </el-table-column>  
68
+          <el-table-column label="閒家輸贏" prop="effectiveWagger"></el-table-column>          
69
+          <el-table-column label="閒家抽水" prop="effectiveServiceFees"></el-table-column>
68 70
         </el-table-column>             
69 71
       </el-table-column>                   
70 72
     </el-table>
@@ -321,6 +323,9 @@ export default {
321 323
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
322 324
           return Math.abs(item.MemberRecord.earned) ;
323 325
         })
326
+        this.bookie[0].effectiveServiceFees = _.sumBy(this.detail, item => {
327
+          return Math.abs(item.MemberRecord.serviceFees) ;
328
+        })
324 329
         console.log('ssss', this.detail)
325 330
         this.bookie[0].currentChips = Number(this.bookie[0].MemberRecord.currentChips) + Number(this.bookie[0].MemberRecord.chips)
326 331
         this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees - this.bookie[0].MemberRecord.wagerServiceFees -this.bookie[0].MemberRecord.FixedServiceFees