Quellcode durchsuchen

add all service

bucket vor 6 Jahren
Ursprung
Commit
644a4f8e1d
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      src/views/room/gameHistory/index.vue

+ 4 - 2
src/views/room/gameHistory/index.vue

@@ -174,7 +174,7 @@ export default {
174 174
         this.chipLogList.map((item) => {
175 175
           fetchCurrentChips(item['GambleGame-Bucket'], this.data.thirdLayer).then(response => {
176 176
             item.earned = _.sumBy(response.data, item => {
177
-              return item.earned - item.serviceFees
177
+              return item.earned - item.serviceFees - item.wagerServiceFees - item.FixedServiceFees
178 178
             })
179 179
             let round = _.groupBy(response.data, 'round')
180 180
             round = Object.values(round)
@@ -230,7 +230,9 @@ export default {
230 230
       fetchPersonGameDetail(this.data.thirdLayer.id, row.id).then(response => {
231 231
         console.log('params', this.data.thirdLayer.id, row.id)
232 232
         console.log('rows', response.data.rows)
233
-        this.dialogList = response.data.rows
233
+        this.dialogList = response.data.rows.map(row => {
234
+          row.serviceFees = row.serviceFees + row.wagerServiceFees + row.FixedServiceFees
235
+        })
234 236
         this.listLoading = false
235 237
       })
236 238
     },