From a96d43c25cd133e0d44e305e57f843287d4d1432 Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Wed, 5 Nov 2025 13:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E8=B7=AF=E7=94=B1=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 32 +++++++++++++--------- src/utils/menuUtils.js | 6 ++-- .../moneyManage/receiveDetail/receiveDetail.vue | 10 ++++++- 3 files changed, 31 insertions(+), 17 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 4221c65..5c54d55 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,7 +25,7 @@ const routes = [ path: 'workbench', name: "workbench", component: () => import("../views/workspace/index.vue"), - meta: { permissionId: 2 } + meta: { permissionId: 2 } }, //金币管理 { @@ -45,14 +45,14 @@ const routes = [ path: 'rechargeAudit', name: "rechargeAudit", component: () => import("../views/audit/gold/rechargeAudit.vue"), - meta: { permissionId: [6,7,8,9,10,11,12] } + meta: { permissionId: [6, 7, 8, 9, 10, 11, 12] } }, // 退款审核 { path: 'refundAudit', name: "refundAudit", component: () => import("../views/audit/gold/refundAudit.vue"), - meta: { permissionId: [13,14,15,16,17,18,19] } + meta: { permissionId: [13, 14, 15, 16, 17, 18, 19] } }, ] }, { @@ -66,7 +66,7 @@ const routes = [ path: 'addbeanAudit', name: "addbeanAudit", component: () => import("../views/audit/bean/beanAudit.vue"), - meta: { permissionId: [21,22,23,24,25,26] } + meta: { permissionId: [21, 22, 23, 24, 25, 26] } }, ] }, @@ -139,7 +139,7 @@ const routes = [ path: '/rate', name: "rate", component: () => import("../views/managerecharge/rate.vue"), - meta: { permissionId: [27,28,29] } + meta: { permissionId: [27, 28, 29] } }, // 金币充值 @@ -216,7 +216,7 @@ const routes = [ path: 'detail', name: "coinRefundDetail", component: () => import("../views/refund/gold/coinRefundDetail.vue"), - meta: { permissionId:49 } + meta: { permissionId: 49 } } ] }, @@ -306,7 +306,7 @@ const routes = [ path: 'receiveDetail', name: "receiveDetail", meta: { permissionId: 74 }, - children:[ + children: [ // 客服页面 { path: 'receiveService', @@ -314,17 +314,23 @@ const routes = [ component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"), meta: { permissionId: 60 } }, - // 地区财务及地区负责人页面 + // 地区负责人页面 { - path: 'receiveArea', - name: "receiveArea", + path: 'receiveManager', + name: "receiveManager", + component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"), + meta: { permissionId: [67, 79] } + }, + {//地区财务 + path: 'receiveFinance', + name: "receiveFinance", component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"), - meta: { permissionId: [67,79] } + meta: { permissionId: [67, 79] } }, //总部管理员及财务 { - path: 'receiveHead', - name: "receiveHead", + path: 'receiveHeader', + name: "receiveHeader", component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"), meta: { permissionId: 91 } }, diff --git a/src/utils/menuUtils.js b/src/utils/menuUtils.js index 10a20c0..7cbe51b 100644 --- a/src/utils/menuUtils.js +++ b/src/utils/menuUtils.js @@ -78,9 +78,9 @@ export const getRoutePath = (menu) => { '收款明细': '/moneyManage/receiveDetail', '收款-地区客服':'/moneyManage/receiveDetail/receiveService', - '收款-地区财务':'/moneyManage/receiveDetail/receiveArea', - '收款-地区负责人':'/moneyManage/receiveDetail/receiveArea', - '收款-总部财务':'/moneyManage/receiveDetail/receiveHead', + '收款-地区财务':'/moneyManage/receiveDetail/receiveFinance', + '收款-地区负责人':'/moneyManage/receiveDetail/receiveManager', + '收款-总部财务':'/moneyManage/receiveDetail/receiveHeader', '退款明细': '/moneyManage/refundDetail', diff --git a/src/views/moneyManage/receiveDetail/receiveDetail.vue b/src/views/moneyManage/receiveDetail/receiveDetail.vue index 7fedb54..f24f2ac 100644 --- a/src/views/moneyManage/receiveDetail/receiveDetail.vue +++ b/src/views/moneyManage/receiveDetail/receiveDetail.vue @@ -1493,8 +1493,16 @@ const throttledsubmitRefund = _.throttle(submitRefund, 5000, { onMounted(async function () { await getAdminData() await getActivitys() - if (hasMenuPermission(menuTree.value, 77) && hasMenuPermission(menuTree.value, 78) && hasMenuPermission(menuTree.value, 79)) { + + if (adminData.value.roleId == 2) { superAdmin.value = true + if(adminData.value.markets == '总部' || adminData.value.markets == '研发部'){ + console.log('提示了吗'); + + ElMessageBox.alert('管理员账号只能看到所属地区对应地区财务数据,请注意设置所属地区','注意',{ + type:'warning' + }) + } getlist() } else if (hasMenuPermission(menuTree.value, 77)) { checkKefu()