EthnaYeh vor 6 Jahren
Ursprung
Commit
272a4a81ee
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 7 1
      src/views/gambleGameBucket/detail/index.vue

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

@@ -39,6 +39,11 @@
39 39
             </template>
40 40
           </el-table-column>      
41 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 47
           <el-table-column prop="ass" label="服務費">
43 48
           </el-table-column>     
44 49
         </el-table-column>             
@@ -280,8 +285,9 @@ export default {
280 285
         }, [])
281 286
 
282 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 291
         console.log('bookie', this.bookie[0].effectiveWagger)
286 292
         this.group.map((item, itemIndex) => {
287 293
           let totalChips = 0