ethan %!s(int64=6) %!d(string=hace) años
padre
commit
7f886830dc
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/views/gambleGameBucket/detail/index.vue

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

@@ -25,7 +25,7 @@
25 25
           <el-table-column label="莊家" prop="MemberRecord.GambleMember.name"></el-table-column>
26 26
           <el-table-column label="點數">
27 27
             <template slot-scope="scope">
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>
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>
29 29
             </template>
30 30
           </el-table-column>
31 31
           <el-table-column label="上莊分數">
@@ -670,6 +670,9 @@ export default {
670 670
       if (screenfull.enabled) {
671 671
         screenfull.request(document.getElementById('full'));
672 672
       }
673
+    },
674
+    pointColor(data) {
675
+      return data === -1 ? { color: '#FA5555' } : ''
673 676
     }
674 677
   },
675 678
   destroyed() {