Ver Código Fonte

change color

EthnaYeh 6 anos atrás
pai
commit
6d45387649

+ 15 - 15
src/views/agnetManagement/gambleMemberManagement/index.vue

@@ -24,27 +24,27 @@
24 24
           </el-table-column>
25 25
           <el-table-column label="總上分額" align="center">
26 26
             <template slot-scope="scope">
27
-               <span :style="moneyColor(scope.row.allUp)">{{scope.row.allUp}}</span>
27
+               <span>{{scope.row.allUp}}</span>
28 28
             </template>
29 29
           </el-table-column>
30 30
           <el-table-column label="總下分額" align="center">
31 31
             <template slot-scope="scope">
32
-              <span :style="moneyColor(scope.row.allDown)">{{scope.row.allDown}}</span>
32
+              <span>{{scope.row.allDown}}</span>
33 33
             </template>
34 34
           </el-table-column>
35 35
           <el-table-column label="所有會員點數" align="center">
36 36
             <template slot-scope="scope">
37
-              <span :style="moneyColor(scope.row.allChips)">{{scope.row.allChips}}</span>
37
+              <span>{{scope.row.allChips}}</span>
38 38
             </template>
39 39
           </el-table-column>
40 40
           <el-table-column label="總投注量" align="center">
41 41
             <template slot-scope="scope">
42
-              <span :style="moneyColor(scope.row.allEarned)">{{scope.row.allEarned}}</span>
42
+              <span>{{scope.row.allEarned}}</span>
43 43
             </template>
44 44
           </el-table-column>
45 45
           <el-table-column label="總水量" align="center">
46 46
             <template slot-scope="scope">
47
-              <span :style="moneyColor(scope.row.allServiceFees)">{{scope.row.allServiceFees}}</span>
47
+              <span>{{scope.row.allServiceFees}}</span>
48 48
             </template>
49 49
           </el-table-column>
50 50
           <el-table-column label="上繳工作室金額" align="center">
@@ -67,25 +67,25 @@
67 67
           </el-table-column>
68 68
           <el-table-column label="總上分額" align="center">
69 69
             <template slot-scope="scope">
70
-              <span :style="moneyColor(scope.row.totalUp)">{{scope.row.totalUp}}</span>
70
+              <span>{{scope.row.totalUp}}</span>
71 71
             </template>
72 72
           </el-table-column>
73 73
           <el-table-column label="總下分額" align="center">
74 74
             <template slot-scope="scope">
75
-              <span :style="moneyColor(scope.row.totalDown)">{{scope.row.totalDown}}</span>
75
+              <span>{{scope.row.totalDown}}</span>
76 76
             </template>
77 77
           </el-table-column>
78 78
           <el-table-column label="總獎勵" align="center">
79 79
             <template slot-scope="scope">
80
-              <span :style="moneyColor(scope.row.totalReward)">{{scope.row.totalReward}}</span>
80
+              <span>{{scope.row.totalReward}}</span>
81 81
             </template>
82 82
           </el-table-column>
83 83
           <el-table-column label="總懲罰" align="center">
84 84
             <template slot-scope="scope">
85
-              <span :style="moneyColor(scope.row.totalPunishment)">{{scope.row.totalDown}}</span>
85
+              <span>{{scope.row.totalDown}}</span>
86 86
             </template>
87 87
           </el-table-column>
88
-          <el-table-column label="莊家贏錢" align="center">
88
+          <!-- <el-table-column label="莊家贏錢" align="center">
89 89
             <template slot-scope="scope">
90 90
               <span :style="moneyColor(scope.row.bookieEarned)">{{scope.row.bookieEarned}}</span>
91 91
             </template>
@@ -94,20 +94,20 @@
94 94
             <template slot-scope="scope">
95 95
               <span :style="moneyColor(scope.row.memberEarned)">{{scope.row.memberEarned}}</span>
96 96
             </template>
97
-          </el-table-column>
97
+          </el-table-column> -->
98 98
           <el-table-column label="莊家抽水" align="center">
99 99
             <template slot-scope="scope">
100
-              <span :style="moneyColor(scope.row.bookieServiceFees)">{{scope.row.bookieServiceFees}}</span>
100
+              <span>{{scope.row.bookieServiceFees}}</span>
101 101
             </template>
102 102
           </el-table-column>
103 103
           <el-table-column label="閒家抽水" align="center">
104 104
             <template slot-scope="scope">
105
-              <span :style="moneyColor(scope.row.memberServiceFees)">{{scope.row.memberServiceFees}}</span>
105
+              <span>{{scope.row.memberServiceFees}}</span>
106 106
             </template>
107 107
           </el-table-column>
108 108
           <el-table-column label="總退水" align="center">
109 109
             <template slot-scope="scope">
110
-              <span :style="moneyColor(scope.row.totalServiceFees)">{{scope.row.totalServiceFees}}</span>
110
+              <span>{{scope.row.totalServiceFees}}</span>
111 111
             </template>
112 112
           </el-table-column>
113 113
           <el-table-column label="會員結帳" align="center">
@@ -230,7 +230,7 @@ export default {
230 230
           }
231 231
           if (bookie.true) {
232 232
             row.bookieEarned = _.sumBy(bookie.true, 'earned');
233
-            row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees-500; })*this.data.secondLayer.feeRatio/100;
233
+            row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees-item.FixedServiceFees })*this.data.secondLayer.feeRatio/100;
234 234
           }
235 235
           row.totalServiceFees = new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).valueOf()
236 236