From 7b13dadd12704c92baddb933c8fcedfdd26b9f38 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Thu, 6 Jun 2024 10:24:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B9=B3=E5=8F=B0=E6=94=B6?= =?UTF-8?q?=E5=85=A5=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/miniGame/MiniGameForBaiShunView.vue | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/miniGame/MiniGameForBaiShunView.vue b/src/views/miniGame/MiniGameForBaiShunView.vue index 09a73d4..8338a68 100644 --- a/src/views/miniGame/MiniGameForBaiShunView.vue +++ b/src/views/miniGame/MiniGameForBaiShunView.vue @@ -73,7 +73,15 @@ export default { { field: 'userCount', title: '人数', align: 'center', width: '15%' }, { field: 'consumeNum', title: '货币消耗', align: 'center', width: '15%' }, { field: 'settleNum', title: '结算总量', align: 'center', width: '15%' }, - { field: 'platformNum', title: '平台收入', align: 'center', width: '15%' }, + { + field: 'platformNum', + title: '平台收入', + align: 'center', + width: '15%', + formatter: function (val, row, index) { + return row.consumeNum - row.settleNum; + } + }, { field: 'dateTime', title: '操作', @@ -90,7 +98,15 @@ export default { { field: 'nick', title: '昵称', align: 'center', width: '15%' }, { field: 'consumeNum', title: '货币消耗', align: 'center', width: '15%' }, { field: 'settleNum', title: '结算总量', align: 'center', width: '15%' }, - { field: 'platformNum', title: '平台收入', align: 'center', width: '15%' }, + { + field: 'platformNum', + title: '平台收入', + align: 'center', + width: '15%', + formatter: function (val, row, index) { + return row.consumeNum - row.settleNum; + } + }, ], }; },