From b26044abd6da1def9434b159916bda7e6a142cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Tue, 29 Oct 2024 17:20:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=85=A5=E8=B4=A6=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/mixins.js | 8 ++++++++ src/views/system/smUser/detail.vue | 1 + src/views/system/smUser/index.vue | 14 ++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/src/utils/mixins.js b/src/utils/mixins.js index b752685..a1f07aa 100644 --- a/src/utils/mixins.js +++ b/src/utils/mixins.js @@ -76,6 +76,10 @@ export const $showColumns = { } }, methods: { + /** + * 隐藏某些列 + * @param columns + */ hideColumn(columns) { if (this.columns != null) { this.columns.filter(item => columns.includes(item.key)) @@ -84,6 +88,10 @@ export const $showColumns = { }) } }, + /** + * 删除某些列 + * @param columns + */ removeColumn(columns) { if (columns != null) { columns.forEach(column => { diff --git a/src/views/system/smUser/detail.vue b/src/views/system/smUser/detail.vue index 3bd8e1e..e6a50fb 100644 --- a/src/views/system/smUser/detail.vue +++ b/src/views/system/smUser/detail.vue @@ -28,6 +28,7 @@ + diff --git a/src/views/system/smUser/index.vue b/src/views/system/smUser/index.vue index 107fb85..7bc05ed 100644 --- a/src/views/system/smUser/index.vue +++ b/src/views/system/smUser/index.vue @@ -9,6 +9,14 @@ @keyup.enter.native="handleQuery" /> + + + {{d.row.balance | money}} 元 + @@ -320,6 +331,7 @@ export default { {key: 'totalIncome', visible: true, label: '收入金额', align: 'center', minWidth: null, sortable: false, width: "120"}, {key: 'withDrawlAmount', visible: true, label: '提现金额', align: 'center', minWidth: null, sortable: false, width: "120"}, {key: 'balance', visible: true, label: '余额', align: 'center', minWidth: null, sortable: true, width: null}, + {key: 'waitBonusAmount', visible: true, label: '未入账', align: 'center', minWidth: null, sortable: false, width: null}, {key: 'realServiceRate', visible: true, label: '商户服务费', align: 'center', minWidth: null, sortable: false, width: "120"}, {key: 'agentServiceRate', visible: true, label: '代理服务费', align: 'center', minWidth: null, sortable: false, width: "120"}, {key: 'withdrawServiceRate', visible: true, label: '提现服务费', align: 'center', minWidth: null, sortable: false, width: "120"}, @@ -375,6 +387,8 @@ export default { }; }, created() { + this.removeColumn(['status']) + this.getList(); }, methods: {