ethan 6 years ago
parent
commit
9514581805
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/gambleGameBucket/detail/index.vue

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

65
               <div>{{scope.row.currentChips}}</div>
65
               <div>{{scope.row.currentChips}}</div>
66
             </template>
66
             </template>
67
           </el-table-column>  
67
           </el-table-column>  
68
-          <el-table-column label="閒家輸贏" prop="effectiveWagger"></el-table-column>          
68
+          <el-table-column label="閒家輸贏" prop="memberWagger"></el-table-column>          
69
           <el-table-column label="閒家抽水" prop="effectiveServiceFees"></el-table-column>
69
           <el-table-column label="閒家抽水" prop="effectiveServiceFees"></el-table-column>
70
         </el-table-column>             
70
         </el-table-column>             
71
       </el-table-column>                   
71
       </el-table-column>                   
320
         }, [])
320
         }, [])
321
         console.log('eee', this.detail)
321
         console.log('eee', this.detail)
322
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
322
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
323
+          return Math.abs(item.MemberRecord.earned);
324
+        })
325
+        this.bookie[0].memberWagger = _.sumBy(this.detail, item => {
323
           return item.MemberRecord.earned;
326
           return item.MemberRecord.earned;
324
         })
327
         })
325
         this.bookie[0].effectiveServiceFees = _.sumBy(this.detail, item => {
328
         this.bookie[0].effectiveServiceFees = _.sumBy(this.detail, item => {