From d3405276c5817f0ce087c847f286c49003555d91 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 11 May 2026 18:57:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8):=20?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=86=85=E5=AE=B9=E6=8C=89=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/UserInfo/BaseInfo/index.vue | 21 ++++++++++++------- src/views/user/user-table-role/index.vue | 15 +++++++++++-- src/views/user/user-table/index.vue | 3 +++ 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/src/components/data/UserInfo/BaseInfo/index.vue b/src/components/data/UserInfo/BaseInfo/index.vue index 564e7d1..35a2178 100644 --- a/src/components/data/UserInfo/BaseInfo/index.vue +++ b/src/components/data/UserInfo/BaseInfo/index.vue @@ -92,8 +92,8 @@ size="38" />
@@ -743,6 +743,11 @@ export default { }, computed: { ...mapGetters(['buttonPermissions']), + hasGoldBalancePermission() { + return this.buttonPermissions.includes( + 'user:table:column:gold-coin-balance' + ) + }, associatedDeviceNotEmpty() { return ( this.deviceInfo && @@ -815,11 +820,13 @@ export default { that.registerLoading = false }) - getUserCandyBalance(userId) - .then(res => { - this.candy = res.body - }) - .catch(er => {}) + if (that.hasGoldBalancePermission) { + getUserCandyBalance(userId) + .then(res => { + this.candy = res.body + }) + .catch(er => {}) + } getUserIdentity(userId) .then(res => { diff --git a/src/views/user/user-table-role/index.vue b/src/views/user/user-table-role/index.vue index 64cb6c9..b8b12ec 100644 --- a/src/views/user/user-table-role/index.vue +++ b/src/views/user/user-table-role/index.vue @@ -188,7 +188,12 @@ /> -