From 95abcb97ef744c47608808c5d80df4f81f8ffc86 Mon Sep 17 00:00:00 2001 From: luo Date: Tue, 18 Aug 2026 17:59:31 +0800 Subject: [PATCH] fix: update some files --- src/types/auto-imports.d.ts | 4 +--- src/views/finance/refund/index.vue | 18 +++++++++--------- src/views/system/role/index.vue | 4 +++- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 66ef040..fe197da 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -7,9 +7,7 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] - const ElButton: (typeof import('element-plus/es'))['ElButton'] - const ElMessage: (typeof import('element-plus/es'))['ElMessage'] - const ElMessageBox: (typeof import('element-plus/es'))['ElMessageBox'] + const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] diff --git a/src/views/finance/refund/index.vue b/src/views/finance/refund/index.vue index ec3c605..1b792db 100644 --- a/src/views/finance/refund/index.vue +++ b/src/views/finance/refund/index.vue @@ -790,19 +790,19 @@ const getActions = (row: Refund) => { const actions: any[] = [] + const voucherKeys = getRefundAttachmentKeys(row) + if (voucherKeys.length && hasAuth('refund:view_voucher')) { + actions.push({ + label: '退款凭证', + handler: () => handleViewRefundVoucher(row), + type: 'primary' + }) + } + if ( [1, 2].includes(userStore.getUserInfo.user_type || 0) && hasAuth(AUDIT_PERMISSIONS.refundEntry) ) { - const voucherKeys = getRefundAttachmentKeys(row) - if (voucherKeys.length && hasAuth('refund:view_voucher')) { - actions.push({ - label: '退款凭证', - handler: () => handleViewRefundVoucher(row), - type: 'primary' - }) - } - const auditTarget = resolveAuditResourceTarget({ userType: userStore.getUserInfo.user_type, resourceType: 'refund', diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 84deadd..054b7e1 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -529,7 +529,9 @@ : []), { prop: 'role_desc', - label: '角色描述' + label: '角色描述', + width: 240, + showOverflowTooltip: true }, { prop: 'created_at',