EthnaYeh 6 years ago
parent
commit
272a4a81ee
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/gambleGameBucket/detail/index.vue

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

39
             </template>
39
             </template>
40
           </el-table-column>      
40
           </el-table-column>      
41
           <el-table-column label="抽水" prop="MemberRecord.serviceFees"></el-table-column>
41
           <el-table-column label="抽水" prop="MemberRecord.serviceFees"></el-table-column>
42
+          <el-table-column label="莊家結果">
43
+            <template slot-scope="scope">
44
+              <div :style="moneyColor(scope.row.bookieResult)">{{scope.row.bookieResult}}</div>
45
+            </template>
46
+          </el-table-column>  
42
           <el-table-column prop="ass" label="服務費">
47
           <el-table-column prop="ass" label="服務費">
43
           </el-table-column>     
48
           </el-table-column>     
44
         </el-table-column>             
49
         </el-table-column>             
280
         }, [])
285
         }, [])
281
 
286
 
282
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
287
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
283
-          return Math.abs(item.MemberRecord.earned);
288
+          return Math.abs(item.MemberRecord.earned) ;
284
         })
289
         })
290
+        this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees
285
         console.log('bookie', this.bookie[0].effectiveWagger)
291
         console.log('bookie', this.bookie[0].effectiveWagger)
286
         this.group.map((item, itemIndex) => {
292
         this.group.map((item, itemIndex) => {
287
           let totalChips = 0
293
           let totalChips = 0