修改平台收入计算
This commit is contained in:
@@ -73,7 +73,15 @@ export default {
|
|||||||
{ field: 'userCount', title: '人数', align: 'center', width: '15%' },
|
{ field: 'userCount', title: '人数', align: 'center', width: '15%' },
|
||||||
{ field: 'consumeNum', title: '货币消耗', align: 'center', width: '15%' },
|
{ field: 'consumeNum', title: '货币消耗', align: 'center', width: '15%' },
|
||||||
{ field: 'settleNum', 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',
|
field: 'dateTime',
|
||||||
title: '操作',
|
title: '操作',
|
||||||
@@ -90,7 +98,15 @@ export default {
|
|||||||
{ field: 'nick', title: '昵称', align: 'center', width: '15%' },
|
{ field: 'nick', title: '昵称', align: 'center', width: '15%' },
|
||||||
{ field: 'consumeNum', title: '货币消耗', align: 'center', width: '15%' },
|
{ field: 'consumeNum', title: '货币消耗', align: 'center', width: '15%' },
|
||||||
{ field: 'settleNum', 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;
|
||||||
|
}
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user