Browse Source

Merge branch 'master' of https://bitbucket.org/EthanYeh/gambleadmin

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

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

25
           <el-table-column label="莊家" prop="MemberRecord.GambleMember.name"></el-table-column>
25
           <el-table-column label="莊家" prop="MemberRecord.GambleMember.name"></el-table-column>
26
           <el-table-column label="點數">
26
           <el-table-column label="點數">
27
             <template slot-scope="scope">
27
             <template slot-scope="scope">
28
-              <span :style="pointColor(scope.row.DealingRecord.point1)">{{`${scope.row.DealingRecord.point1 === -1 ? '' : scope.row.DealingRecord.point1 + ' | '} ${scope.row.DealingRecord.point2 === -1 ? '' : scope.row.DealingRecord.point2 + ' / '} ${point(scope.row.DealingRecord)}`}}</span>
28
+              <span>{{`${scope.row.DealingRecord.point1 === -1 ? '' : scope.row.DealingRecord.point1 + ' | '} ${scope.row.DealingRecord.point2 === -1 ? '' : scope.row.DealingRecord.point2 + ' / '} ${point(scope.row.DealingRecord)}`}}</span>
29
             </template>
29
             </template>
30
           </el-table-column>
30
           </el-table-column>
31
           <el-table-column label="上莊分數">
31
           <el-table-column label="上莊分數">
61
               <div :style="moneyColor(scope.row.bookieResult)">{{scope.row.bookieResult}}</div>
61
               <div :style="moneyColor(scope.row.bookieResult)">{{scope.row.bookieResult}}</div>
62
             </template>
62
             </template>
63
           </el-table-column>
63
           </el-table-column>
64
+          <el-table-column label="檯面積分">
65
+            <template slot-scope="scope">
66
+              {{memberRecord[memberRecord.length-1][0].wager+scope.row.bookieResult}}
67
+              </template>    
68
+          </el-table-column> 
64
           <el-table-column label="最終積分">
69
           <el-table-column label="最終積分">
65
             <template slot-scope="scope">
70
             <template slot-scope="scope">
66
               <div>{{scope.row.currentChips}}</div>
71
               <div>{{scope.row.currentChips}}</div>
157
             <div :style="moneyColor(scope.row.totalChips)">{{scope.row.totalChips}}</div>
162
             <div :style="moneyColor(scope.row.totalChips)">{{scope.row.totalChips}}</div>
158
           </template>
163
           </template>
159
         </el-table-column>
164
         </el-table-column>
165
+        <el-table-column label="檯面積分" prop="tablePoint"></el-table-column>         
160
         <el-table-column label="最終積分">
166
         <el-table-column label="最終積分">
161
           <template slot-scope="scope">
167
           <template slot-scope="scope">
162
             <div>{{scope.row.MemberRecord.currentChips}}</div>
168
             <div>{{scope.row.MemberRecord.currentChips}}</div>
251
               <div :style="moneyColor(scope.row.bookieResult)">{{scope.row.bookieResult}}</div>
257
               <div :style="moneyColor(scope.row.bookieResult)">{{scope.row.bookieResult}}</div>
252
             </template>
258
             </template>
253
           </el-table-column>
259
           </el-table-column>
260
+          <el-table-column label="檯面積分">
261
+            <template slot-scope="scope">
262
+              {{memberRecord[memberRecord.length-1][0].wager+scope.row.bookieResult}}
263
+            </template>    
264
+          </el-table-column> 
254
           <el-table-column label="最終積分">
265
           <el-table-column label="最終積分">
255
             <template slot-scope="scope">
266
             <template slot-scope="scope">
256
               <div>{{scope.row.currentChips}}</div>
267
               <div>{{scope.row.currentChips}}</div>
527
         this.bookie[0].currentChips = Number(this.bookie[0].MemberRecord.currentChips) + Number(this.bookie[0].MemberRecord.chips)
538
         this.bookie[0].currentChips = Number(this.bookie[0].MemberRecord.currentChips) + Number(this.bookie[0].MemberRecord.chips)
528
         this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees - this.bookie[0].MemberRecord.wagerServiceFees -this.bookie[0].MemberRecord.FixedServiceFees
539
         this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees - this.bookie[0].MemberRecord.wagerServiceFees -this.bookie[0].MemberRecord.FixedServiceFees
529
         // console.log('bookie', this.bookie[0].effectiveWagger)
540
         // console.log('bookie', this.bookie[0].effectiveWagger)
541
+        // console.log('weqweqwe', this.bookie[0].bookieResult ,this.memberRecord[memberRecord.length-1][0].wager)
542
+        // this.bookie[0].tablePoint = this.bookie[0].bookieResult + this.memberRecord[memberRecord.length-1][0].wager
530
         this.group.map((item, itemIndex) => {
543
         this.group.map((item, itemIndex) => {
531
           let totalChips = 0
544
           let totalChips = 0
532
           item.map((person, personIndex) => {
545
           item.map((person, personIndex) => {
671
         screenfull.request(document.getElementById('full'));
684
         screenfull.request(document.getElementById('full'));
672
       }
685
       }
673
     },
686
     },
674
-    pointColor(data) {
675
-      return data === -1 ? { color: '#FA5555' } : ''
676
-    }
677
   },
687
   },
678
   destroyed() {
688
   destroyed() {
679
     this.SetVisible(1)
689
     this.SetVisible(1)