|
@ -1,86 +1,93 @@ |
|
|
// 菜单权限映射(按 menu_type 排序)
|
|
|
// 菜单权限映射(按 menu_type 排序)
|
|
|
export const permissionMapping = { |
|
|
export const permissionMapping = { |
|
|
System_Management: 1, // 系统管理
|
|
|
|
|
|
|
|
|
|
|
|
// menu_type 2: 主功能菜单
|
|
|
|
|
|
Workbench: 2, // 工作台
|
|
|
|
|
|
Financial_Audit: 3, // 财务审核
|
|
|
|
|
|
Exchange_Rate_Management: 4, // 汇率管理
|
|
|
|
|
|
Recharge_Management: 5, // 充值管理
|
|
|
|
|
|
Consumption_Management: 6, // 消耗管理
|
|
|
|
|
|
Refund_Management: 7, // 退款管理
|
|
|
|
|
|
Customer_Account_Details: 8, // 客户账户明细
|
|
|
|
|
|
History: 56, // 历史数据查询
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Permission_Management: 9, // 权限管理
|
|
|
|
|
|
|
|
|
|
|
|
// menu_type 3: 子功能菜单
|
|
|
|
|
|
Gold_Coin_Recharge: 34, // 金币充值
|
|
|
|
|
|
Gold_Coin_Consumption: 35, // 金币消耗
|
|
|
|
|
|
Gold_Coin_Refund: 37, // 金币退款
|
|
|
|
|
|
Gold_Coin_Audit: 40, // 金币审核
|
|
|
|
|
|
|
|
|
|
|
|
Golden_Bean_Recharge: 41, // 金豆充值
|
|
|
|
|
|
Golden_Bean_Consumption: 42, // 金豆消耗
|
|
|
|
|
|
Golden_Bean_Audit: 43, // 金豆审核
|
|
|
|
|
|
|
|
|
|
|
|
Gold_Coin_Customer_Account_Details: 44, // 金币客户账户明细
|
|
|
|
|
|
Golden_Bean_Customer_Account_Details: 45, // 金豆客户账户明细
|
|
|
|
|
|
|
|
|
|
|
|
// menu_type 4: 功能操作权限
|
|
|
|
|
|
Workbench_Display: 10, // 工作台展示
|
|
|
|
|
|
View_Recharge_Audit: 11, // 查看充值审核 // 有这个页面权限的就有
|
|
|
|
|
|
Recharge_Approval: 12, // 充值审批 //细致划分
|
|
|
|
|
|
View_Refund_Audit: 13, // 查看退款审核 // 有这个页面权限的就有
|
|
|
|
|
|
Refund_Approval: 14, // 退款审批 //细致划分
|
|
|
|
|
|
|
|
|
|
|
|
Exchange_Rate_View: 15, // 汇率查看
|
|
|
|
|
|
Exchange_Rate_Modification: 16, // 汇率修改
|
|
|
|
|
|
|
|
|
|
|
|
Submit_Gold_Coin_Recharge: 17, // 提交金币充值 // coinRecharge页面
|
|
|
|
|
|
View_Gold_Coin_Recharge_Details: 18, // 查看金币充值明细 // coinRecharge页面
|
|
|
|
|
|
|
|
|
|
|
|
Submit_Gold_Coin_Consumption: 19, // 提交金币消耗 // coinConsume页面
|
|
|
|
|
|
View_Gold_Coin_Consumption_Details: 20, // 查看金币消耗明细 // coinConsume页面
|
|
|
|
|
|
|
|
|
|
|
|
Submit_Gold_Coin_Refund: 21, // 提交金币退款 // coinRefund页面
|
|
|
|
|
|
View_Gold_Coin_Refund_Details: 22, // 查看金币退款明细 // coinRefund页面
|
|
|
|
|
|
Submit_Gold_Coin_RefundS: 58, // 提交金币退款 // coinRefund页面
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
View_Gold_Coin_Details: 23, // 查看金币明细 //usergold页面
|
|
|
|
|
|
View_Gold_Coin_Balance: 24, // 查看金币余额 //usergold页面
|
|
|
|
|
|
|
|
|
|
|
|
View_Permission: 25, // 查看权限
|
|
|
|
|
|
Add_User: 26, // 新增用户
|
|
|
|
|
|
|
|
|
|
|
|
Change_Status: 27, // 改变状态
|
|
|
|
|
|
Modify_Permission: 28, // 修改权限
|
|
|
|
|
|
Delete_User: 29, // 删除用户
|
|
|
|
|
|
|
|
|
|
|
|
View_Role: 30, // 查看角色
|
|
|
|
|
|
Edit_Role: 36, // 编辑角色
|
|
|
|
|
|
|
|
|
|
|
|
Recharge_Audit: 31, // 充值审核(金币) // audit页面
|
|
|
|
|
|
Refund_Audit: 32, // 退款审核(金币) // audit页面,
|
|
|
|
|
|
|
|
|
|
|
|
History_Query: 57, // 历史数据查询
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 新增的金豆相关权限
|
|
|
|
|
|
Submit_Golden_Bean_Recharge: 46, // 提交金豆充值
|
|
|
|
|
|
View_Golden_Bean_System_Recharge_Details: 47, // 查看金豆系统充值明细
|
|
|
|
|
|
View_Golden_Bean_Online_Recharge_Details: 48, // 查看金豆线上充值明细
|
|
|
|
|
|
Submit_Golden_Bean_Consumption: 49, // 提交金豆消耗
|
|
|
|
|
|
View_Golden_Bean_Live_Consumption_Details: 50, // 查看金豆直播消耗明细
|
|
|
|
|
|
View_Golden_Bean_Fan_Consumption_Details: 51, // 查看金豆铁粉消耗明细
|
|
|
|
|
|
View_Golden_Bean_Article_Video_Consumption_Details: 52, // 查看金豆文章/视频消耗明细
|
|
|
|
|
|
View_Golden_Bean_Balance: 53, // 查看金豆余额
|
|
|
|
|
|
View_Golden_Bean_Recharge_Audit: 54, // 查看金豆充值审核
|
|
|
|
|
|
Golden_Bean_Recharge_Approval: 55 // 金豆充值审批
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
// 大系统和分系统,0级1级
|
|
|
|
|
|
system:1, // 总系统
|
|
|
|
|
|
workbench: 2, // 工作台
|
|
|
|
|
|
goldManage:3, // 金币管理
|
|
|
|
|
|
monerManage:4, // 现金管理
|
|
|
|
|
|
|
|
|
|
|
|
// 模块,2级
|
|
|
|
|
|
financialAudit:5, // 财务审核
|
|
|
|
|
|
rateManage:6, // 汇率管理
|
|
|
|
|
|
rechargeManage:7, // 充值管理
|
|
|
|
|
|
consumeManage:8, // 消耗管理
|
|
|
|
|
|
refundManage:9, // 退款管理
|
|
|
|
|
|
accountDetail:10, // 客户账户明细
|
|
|
|
|
|
permissionManage:11, // 权限管理
|
|
|
|
|
|
historyData:12, // 历史数据查询
|
|
|
|
|
|
|
|
|
|
|
|
// 页面,3级
|
|
|
|
|
|
workbenchShow:13, // 工作台查看
|
|
|
|
|
|
coinAudit:14, // 金币审核
|
|
|
|
|
|
beanAudit:15, // 金豆审核
|
|
|
|
|
|
moneyRate:16, // 现金汇率
|
|
|
|
|
|
coinRecharge:17, // 金币充值
|
|
|
|
|
|
beanRecharge:18, // 金豆充值
|
|
|
|
|
|
coinConsume:19, // 金币消耗
|
|
|
|
|
|
beanConsume:20, // 金豆消耗
|
|
|
|
|
|
coinRefund:21, // 金币退款
|
|
|
|
|
|
coinDetail:22, // 金币客户账户明细
|
|
|
|
|
|
beanDetail:23, // 金豆客户账户明细
|
|
|
|
|
|
userManage:24, // 用户管理
|
|
|
|
|
|
roleManage:25, // 角色管理
|
|
|
|
|
|
newCoinSelect:26, // 金币查询(新)
|
|
|
|
|
|
oldCoinSelect:27, // 金币查询(旧)
|
|
|
|
|
|
|
|
|
|
|
|
// 功能,4级
|
|
|
|
|
|
rechargeAudit:28, // 充值审核
|
|
|
|
|
|
refundAudit:29, // 退款审核
|
|
|
|
|
|
rechargeThrough:30, // 充值审核已通过
|
|
|
|
|
|
rechargeReject:31, // 充值审核已驳回
|
|
|
|
|
|
rechargeWait:32, // 充值审核待审核
|
|
|
|
|
|
rechargeWaitShow:33, // 充值审核待审核查看
|
|
|
|
|
|
rechargeWaitThough:34, // 充值审核通过
|
|
|
|
|
|
rechargeWaitReject:35, // 充值审核驳回
|
|
|
|
|
|
refundThrough:36, // 退款审核已通过
|
|
|
|
|
|
refundReject:37, // 退款审核已驳回
|
|
|
|
|
|
refundWait:38, // 退款审核待审核
|
|
|
|
|
|
refundWaitShow:39, // 退款审核待审核查看
|
|
|
|
|
|
refundWaitThough:40, // 退款审核通过
|
|
|
|
|
|
refundWaitReject:41, // 退款审核驳回
|
|
|
|
|
|
|
|
|
|
|
|
beanWait:42, // 金豆审核待审核
|
|
|
|
|
|
beanWaitThough:43, // 金豆审核已通过
|
|
|
|
|
|
beanReject:44, // 金豆审核已驳回
|
|
|
|
|
|
beanWaitShow:45, // 金豆审核待审核查看
|
|
|
|
|
|
beanWaitThough:46, // 金豆审核通过
|
|
|
|
|
|
beanWaitReject:47, // 金豆审核驳回
|
|
|
|
|
|
|
|
|
|
|
|
rateShow:48, // 现金汇率查看
|
|
|
|
|
|
rateEdit:49, // 现金汇率编辑
|
|
|
|
|
|
|
|
|
|
|
|
addCoinRecharge:50, // 新增金币充值
|
|
|
|
|
|
coinRechargeDetail:51, // 金币充值明细
|
|
|
|
|
|
addBeanRecharge:52, // 新增金豆充值
|
|
|
|
|
|
beanSystemRecharge:53, // 金豆系统充值
|
|
|
|
|
|
beanOnlineRecharge:54, // 金豆线上充值
|
|
|
|
|
|
|
|
|
|
|
|
addCoinConsume:55, // 新增金币消耗
|
|
|
|
|
|
coinConsumeDetail:56, // 金币消耗明细
|
|
|
|
|
|
addBeanConsume:57, // 新增金豆消耗
|
|
|
|
|
|
beanZBDetail:58, // 金豆直播消耗
|
|
|
|
|
|
beanTFDetail:59, // 金豆铁粉消耗
|
|
|
|
|
|
beanSPWZDetail:60, // 金豆视频文章消耗
|
|
|
|
|
|
|
|
|
|
|
|
addCoinRefund:61, // 新增金币退款
|
|
|
|
|
|
coinRefundDetail:62, // 金币退款明细
|
|
|
|
|
|
|
|
|
|
|
|
coinCustomerDetail:63, // 金币客户账户明细
|
|
|
|
|
|
coinCustomerMoney:64, // 金币客户账户金额
|
|
|
|
|
|
|
|
|
|
|
|
userManageShow:65, // 用户管理展示
|
|
|
|
|
|
addUserInfo:66, // 新增用户信息
|
|
|
|
|
|
editUserInfo:67, // 编辑用户信息
|
|
|
|
|
|
updateUserInfo:68, // 重置密码
|
|
|
|
|
|
deleteUserInfo:69, // 删除用户信息
|
|
|
|
|
|
|
|
|
|
|
|
roleManageShow:70, // 查看角色信息
|
|
|
|
|
|
addRoleInfo:71, // 新增角色信息
|
|
|
|
|
|
editRoleInfo:72, // 编辑角色信息
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 递归查找菜单中是否存在目标id
|
|
|
// 递归查找菜单中是否存在目标id
|
|
|
export const findMenuById = (menuList, targetId) => { |
|
|
export const findMenuById = (menuList, targetId) => { |
|
|