From cadeca36ff86f74371c77a05dc8422abc1e48855 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Thu, 19 Dec 2024 16:28:40 +0800 Subject: [PATCH] feat(table): 添加合计行功能 - 在 mallMemberList.html 中添加了 totalRow 属性,用于显示碳币和碳积分的合计 - 在 moneyFlowList.html 中移除了 description 字段的 totalRow属性 - 在 sellVipList.html 中将 amount 和 amountFee 字段的 totalRow 属性改为 true --- src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html | 2 +- src/main/resources/templates/febs/views/modules/runVip/sellVipList.html | 4 ++-- src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html b/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html index a5464b2..438caed 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html @@ -237,13 +237,14 @@ url: ctx + 'admin/mallMember/getMallMemberList', toolbar:"#toolbar", defaultToolbar:[], + totalRow : true, cols: [[ {type: 'checkbox'}, - {field: 'phone', title: '账号', minWidth: 150,align:'left'}, + {field: 'phone', title: '账号', minWidth: 150,align:'left',totalRowText:"合计"}, {field: 'name', title: '昵称', minWidth: 100,align:'left'}, {field: 'inviteId', title: '邀请码', minWidth: 100,align:'left'}, - {field: 'balance', title: '碳币', minWidth: 100,align:'left'}, - {field: 'score', title: '碳积分', minWidth: 100,align:'left'}, + {field: 'balance', title: '碳币', minWidth: 100,align:'left', totalRow:true}, + {field: 'score', title: '碳积分', minWidth: 100,align:'left', totalRow:true}, {field: 'referrerName', title: '推荐人', minWidth: 100,align:'left'}, {field: 'levelName', title: '会员等级', minWidth: 100,align:'left'}, {field: 'vipLevelTime', title: '到期时间', minWidth: 180,align:'center'}, diff --git a/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html b/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html index 3f9007c..25281b1 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html @@ -137,7 +137,7 @@ {field: 'name', title: '用户昵称', minWidth: 100,align:'left',totalRowText:"合计"}, {field: 'phone', title: '手机号码', minWidth: 150,align:'left'}, {field: 'amount', title: '金额', minWidth: 150,align:'left', totalRow:true}, - {field: 'description', title: '流水类型', minWidth: 150,align:'left', totalRow:true}, + {field: 'description', title: '流水类型', minWidth: 150,align:'left'}, {field: 'flowType', title: '资金类型', templet: function (d) { if (d.flowType === 1) { diff --git a/src/main/resources/templates/febs/views/modules/runVip/sellVipList.html b/src/main/resources/templates/febs/views/modules/runVip/sellVipList.html index 18235a7..27614f5 100644 --- a/src/main/resources/templates/febs/views/modules/runVip/sellVipList.html +++ b/src/main/resources/templates/febs/views/modules/runVip/sellVipList.html @@ -142,8 +142,8 @@ {field: 'account', title: '账号', minWidth: 150,align:'center'}, {field: 'type', title: '链', minWidth: 100,align:'center'}, {field: 'name', title: '提现地址', minWidth: 100,align:'center'}, - {field: 'amount', title: '金额', minWidth: 100,align:'center',totalRow: '{{= parseInt(d.amount) }}'}, - {field: 'amountFee', title: '手续费', minWidth: 100,align:'center',totalRow: '{{= parseInt(d.amount) }}'}, + {field: 'amount', title: '金额', minWidth: 100,align:'center', totalRow:true}, + {field: 'amountFee', title: '手续费', minWidth: 100,align:'center', totalRow:true}, {title: '状态', templet: '#statusType', minWidth: 100,align:'center'}, {field: 'createdTime', title: '创建时间', minWidth: 180,align:'center'}, {title: '操作', toolbar: '#commissionOption', minWidth: 200} -- Gitblit v1.9.1