feat(table): 添加合计行功能
- 在 mallMemberList.html 中添加了 totalRow 属性,用于显示碳币和碳积分的合计
- 在 moneyFlowList.html 中移除了 description 字段的 totalRow属性
- 在 sellVipList.html 中将 amount 和 amountFee 字段的 totalRow 属性改为 true
| | |
| | | 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'}, |
| | |
| | | {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) { |
| | |
| | | {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} |