Browse Source

add:审核部分权限

zhangyong/milestone-20250913-现金管理二期
lihui 4 weeks ago
parent
commit
43a569fd59
  1. 12
      src/views/audit/bean/beanAudit.vue
  2. 4
      src/views/audit/gold/audit.vue
  3. 12
      src/views/audit/gold/rechargeAudit.vue
  4. 12
      src/views/audit/gold/refundAudit.vue

12
src/views/audit/bean/beanAudit.vue

@ -186,12 +186,12 @@ const hasbeanWaitReject = ref(false) // 金豆审核驳回(对应beanWaitReje
// //
const initPermissions = async () => { const initPermissions = async () => {
if (!menuTree.value || !menuTree.value.length) return; 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);
}; };
// //

4
src/views/audit/gold/audit.vue

@ -62,8 +62,8 @@ const navigateTo = (name) => {
const initPermissions = () => { const initPermissions = () => {
if (!menuTree.value || !menuTree.value.length) return; 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);
}; };
// //

12
src/views/audit/gold/rechargeAudit.vue

@ -228,12 +228,12 @@ const hasrechargeWaitReject = ref(false) // 充值审核驳回
// //
const initPermissions = async() => { const initPermissions = async() => {
if (!menuTree.value || !menuTree.value.length) return; 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(hasrechargeWaitThough.value)
console.log(hasrechargeWaitReject.value) console.log(hasrechargeWaitReject.value)

12
src/views/audit/gold/refundAudit.vue

@ -275,12 +275,12 @@ const hasrefundWaitReject = ref(false) // 退款审核驳回
const initPermissions = async () => { const initPermissions = async () => {
if (!menuTree.value || !menuTree.value.length) return; 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('退款权限赋值完成'); console.log('退款权限赋值完成');
}; };

Loading…
Cancel
Save