diff --git a/src/views/audit/bean/beanAudit.vue b/src/views/audit/bean/beanAudit.vue index 50094b0..fa421d2 100644 --- a/src/views/audit/bean/beanAudit.vue +++ b/src/views/audit/bean/beanAudit.vue @@ -186,12 +186,12 @@ const hasbeanWaitReject = ref(false) // 金豆审核驳回(对应beanWaitReje // 初始化权限状态(补充金豆审核权限,与充值权限初始化逻辑并列) const initPermissions = async () => { if (!menuTree.value || !menuTree.value.length) return; - hasbeanWait.value = hasMenuPermission(menuTree.value, permissionMapping.beanWait); - hasbeanThrough.value = hasMenuPermission(menuTree.value, permissionMapping.beanThrough); - hasbeanReject.value = hasMenuPermission(menuTree.value, permissionMapping.beanReject); - hasbeanWaitShow.value = hasMenuPermission(menuTree.value, permissionMapping.beanWaitShow); - hasbeanWaitThough.value = hasMenuPermission(menuTree.value, permissionMapping.beanWaitThough); - hasbeanWaitReject.value = hasMenuPermission(menuTree.value, permissionMapping.beanWaitReject); + hasbeanWait.value = hasMenuPermission(menuTree.value, permissionMapping.gold_bean_audit_pending); + hasbeanThrough.value = hasMenuPermission(menuTree.value, permissionMapping.pass_gold_bean_audit); + hasbeanReject.value = hasMenuPermission(menuTree.value, permissionMapping.reject_gold_bean_audit); + hasbeanWaitShow.value = hasMenuPermission(menuTree.value, permissionMapping.view_gold_bean_pending); + hasbeanWaitThough.value = hasMenuPermission(menuTree.value, permissionMapping.gold_bean_audit_approved); + hasbeanWaitReject.value = hasMenuPermission(menuTree.value, permissionMapping.gold_bean_audit_rejected); }; // 设置对话框可见性 diff --git a/src/views/audit/gold/audit.vue b/src/views/audit/gold/audit.vue index dc79a09..4c02a4b 100644 --- a/src/views/audit/gold/audit.vue +++ b/src/views/audit/gold/audit.vue @@ -62,8 +62,8 @@ const navigateTo = (name) => { const initPermissions = () => { if (!menuTree.value || !menuTree.value.length) return; - hasRecharge.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeAudit); - hasRefund.value = hasMenuPermission(menuTree.value, permissionMapping.refundAudit); + hasRecharge.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_recharge_audit); + hasRefund.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_refund_audit); }; // 默认跳转逻辑 diff --git a/src/views/audit/gold/rechargeAudit.vue b/src/views/audit/gold/rechargeAudit.vue index 083990c..2262ce6 100644 --- a/src/views/audit/gold/rechargeAudit.vue +++ b/src/views/audit/gold/rechargeAudit.vue @@ -228,12 +228,12 @@ const hasrechargeWaitReject = ref(false) // 充值审核驳回 // 初始化权限状态 const initPermissions = async() => { if (!menuTree.value || !menuTree.value.length) return; - hasrechargeThrough.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeThrough); - hasrechargeReject.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeReject); - hasrechargeWait.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeWait); - hasrechargeWaitShow.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeWaitShow); - hasrechargeWaitThough.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeWaitThough); - hasrechargeWaitReject.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeWaitReject); + hasrechargeThrough.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_recharge_approved); + hasrechargeReject.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_recharge_rejected); + hasrechargeWait.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_recharge_pending); + hasrechargeWaitShow.value = hasMenuPermission(menuTree.value, permissionMapping.view_gold_recharge_pending); + hasrechargeWaitThough.value = hasMenuPermission(menuTree.value, permissionMapping.pass_gold_refund_audit); + hasrechargeWaitReject.value = hasMenuPermission(menuTree.value, permissionMapping.reject_gold_refund_audit); console.log(hasrechargeWaitThough.value) console.log(hasrechargeWaitReject.value) diff --git a/src/views/audit/gold/refundAudit.vue b/src/views/audit/gold/refundAudit.vue index ebcc6b2..73f5a2c 100644 --- a/src/views/audit/gold/refundAudit.vue +++ b/src/views/audit/gold/refundAudit.vue @@ -275,12 +275,12 @@ const hasrefundWaitReject = ref(false) // 退款审核驳回 const initPermissions = async () => { if (!menuTree.value || !menuTree.value.length) return; // 退款相关权限 - hasrefundThrough.value = hasMenuPermission(menuTree.value, permissionMapping.refundThrough); - hasrefundReject.value = hasMenuPermission(menuTree.value, permissionMapping.refundReject); - hasrefundWait.value = hasMenuPermission(menuTree.value, permissionMapping.refundWait); - hasrefundWaitShow.value = hasMenuPermission(menuTree.value, permissionMapping.refundWaitShow); - hasrefundWaitThough.value = hasMenuPermission(menuTree.value, permissionMapping.refundWaitThough); - hasrefundWaitReject.value = hasMenuPermission(menuTree.value, permissionMapping.refundWaitReject); + hasrefundThrough.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_refund_approved); + hasrefundReject.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_refund_rejected); + hasrefundWait.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_refund_pending); + hasrefundWaitShow.value = hasMenuPermission(menuTree.value, permissionMapping.view_gold_refund_pending); + hasrefundWaitThough.value = hasMenuPermission(menuTree.value, permissionMapping.pass_gold_refund_audit); + hasrefundWaitReject.value = hasMenuPermission(menuTree.value, permissionMapping.reject_gold_refund_audit); console.log('退款权限赋值完成'); };