ソースを参照

add reward and punishment

Encore 6 年 前
コミット
eec12165b7
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  1. 3 1
      src/views/agnetManagement/gambleMemberManagement/index.vue

+ 3 - 1
src/views/agnetManagement/gambleMemberManagement/index.vue

@@ -186,6 +186,8 @@ export default {
186 186
           name: (this.data.secondLayer.GambleMember.name).slice(19),
187 187
           allUp: _.sumBy(response.data, 'totalUp'),
188 188
           allDown: _.sumBy(response.data, 'totalDown'),
189
+          allReward: _.sumBy(response.data, 'totalReward'),
190
+          allAdminPunishment: _.sumBy(response.data, 'adminPunishment'),
189 191
           allChips: _.sumBy(response.data, 'chips'),
190 192
           allEarned: _.sumBy(response.data, item => {return item.effectiveTotal}),
191 193
           allServiceFees: _.sumBy(response.data, item => {return Number(item.totalServiceFees) }).toFixed(1),
@@ -339,7 +341,7 @@ export default {
339 341
       return money >= 0 ? { color: '#67C23A' } : { color: '#FA5555' }
340 342
     },
341 343
     all(scope) {
342
-      return (scope.row.allUp+scope.row.allDown-scope.row.allChips-scope.row.allServiceFees)*(-1)
344
+      return (scope.row.allUp+scope.row.allDown+Number(scope.row.allReward)+Number(scope.row.allAdminPunishment)-scope.row.allChips-scope.row.allServiceFees)*(-1)
343 345
     },
344 346
     getSummaries(param) {
345 347
         const { columns, data } = param;