From 0ac841f4bf44c7b1f45ceae03e81e1d0241d21f3 Mon Sep 17 00:00:00 2001 From: YuanHuakk <1751826683@qq.com> Date: Fri, 22 Dec 2023 22:08:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(custom):=20=E6=8F=90=E7=8E=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=96=B0=E5=A2=9E=E8=8B=A5=E5=B9=B2=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/finance/index.vue | 51 +++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/src/views/finance/index.vue b/src/views/finance/index.vue index 317c86c..7c60957 100644 --- a/src/views/finance/index.vue +++ b/src/views/finance/index.vue @@ -188,10 +188,57 @@ const columns = ref([ }, { title: '提现金额', - slot: 'integral', + key: 'integral', + align: 'center', + }, + { + title: '上次留存积分', + key: 'balance', + align: 'center', + }, + { + title: '服务费', + key: 'commission', + align: 'center', + }, + { + title: '实际到账', + key: 'number', + align: 'center', + }, + { + title: '剩余余额', + key: 'residue', + align: 'center', + }, + { + title: '手续费比例', + slot: 'commission_number', align: 'center', render: (row) => { - return h('span', {}, row.integral) + return h( + 'span', + {}, + { + default: () => `${row.commission_number}%`, + } + ) + }, + }, + { + title: '手续费类型', + key: 'commission_type', + align: 'center', + render: (row) => { + return h( + NTag, + { + type: row.commission_type === 1 ? 'success' : 'warning', + }, + { + default: () => (row.commission_type === 1 ? '百分比' : '固定值'), + } + ) }, }, {