Преглед на файлове

if no punishment visble

ethan преди 6 години
родител
ревизия
9b045d7f0d
променени са 1 файла, в които са добавени 12 реда и са изтрити 3 реда
  1. 12 3
      src/views/gambleGameBucket/detail/index.vue

+ 12 - 3
src/views/gambleGameBucket/detail/index.vue

@@ -41,10 +41,15 @@
41 41
             <template slot-scope="scope">
42 42
               <div :style="moneyColor(scope.row.MemberRecord.earned)">{{scope.row.MemberRecord.earned}}</div>
43 43
             </template>
44
+          </el-table-column>
45
+          <el-table-column label="下注量抽水" >
46
+            <template slot-scope="scope">
47
+                <div>{{scope.row.MemberRecord.serviceFees}}</div>
48
+            </template>
44 49
           </el-table-column>      
45
-          <el-table-column label="抽水" prop="MemberRecord.serviceFees">
50
+          <el-table-column label="莊贏抽水">
46 51
               <template slot-scope="scope">
47
-                <div>{{scope.row.MemberRecord.serviceFees - scope.row.MemberRecord.FixedServiceFees}}</div>
52
+                <div>{{scope.row.MemberRecord.serviceFees}}</div>
48 53
             </template>
49 54
           </el-table-column>
50 55
           <el-table-column prop="MemberRecord.FixedServiceFees" label="服務費">
@@ -134,7 +139,7 @@
134 139
       </el-table-column>      
135 140
     </el-table>
136 141
 
137
-    <el-table :data="punishmentRecord" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
142
+    <el-table v-show="hasPunishment(punishmentRecord)" :data="punishmentRecord" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
138 143
       style="width: 100%">
139 144
       <el-table-column label="懲罰名單" align="center">
140 145
         <el-table-column prop="GambleMember.name" label="玩家">
@@ -440,6 +445,10 @@ export default {
440 445
         default:
441 446
           return '請找客服'
442 447
       }
448
+    },
449
+    hasPunishment(data) {
450
+      console.log('wwwwwwff',data)
451
+      return data.length !== 0 ? true : false
443 452
     }
444 453
   },
445 454
   destroyed() {