This commit is contained in:
@@ -43,6 +43,56 @@ export const EXPORT_TASK_SCENE_CONFIG: Record<ExportTaskScene, ExportTaskSceneCo
|
||||
download: 'export_task:order_download',
|
||||
cancel: 'export_task:order_cancel'
|
||||
}
|
||||
},
|
||||
package: {
|
||||
scene: 'package',
|
||||
sceneName: '套餐管理',
|
||||
pageTitle: '导出套餐',
|
||||
permissions: {
|
||||
detail: 'export_task:package_detail',
|
||||
download: 'export_task:package_download',
|
||||
cancel: 'export_task:package_cancel'
|
||||
}
|
||||
},
|
||||
agent_wallet_transaction: {
|
||||
scene: 'agent_wallet_transaction',
|
||||
sceneName: '代理主钱包流水',
|
||||
pageTitle: '导出代理主钱包流水',
|
||||
permissions: {
|
||||
detail: 'export_task:agent_wallet_transaction_detail',
|
||||
download: 'export_task:agent_wallet_transaction_download',
|
||||
cancel: 'export_task:agent_wallet_transaction_cancel'
|
||||
}
|
||||
},
|
||||
agent_recharge: {
|
||||
scene: 'agent_recharge',
|
||||
sceneName: '代理充值',
|
||||
pageTitle: '导出代理充值',
|
||||
permissions: {
|
||||
detail: 'export_task:agent_recharge_detail',
|
||||
download: 'export_task:agent_recharge_download',
|
||||
cancel: 'export_task:agent_recharge_cancel'
|
||||
}
|
||||
},
|
||||
refund: {
|
||||
scene: 'refund',
|
||||
sceneName: '退款',
|
||||
pageTitle: '导出退款',
|
||||
permissions: {
|
||||
detail: 'export_task:refund_detail',
|
||||
download: 'export_task:refund_download',
|
||||
cancel: 'export_task:refund_cancel'
|
||||
}
|
||||
},
|
||||
exchange: {
|
||||
scene: 'exchange',
|
||||
sceneName: '换货',
|
||||
pageTitle: '导出换货',
|
||||
permissions: {
|
||||
detail: 'export_task:exchange_detail',
|
||||
download: 'export_task:exchange_download',
|
||||
cancel: 'export_task:exchange_cancel'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,3 +37,4 @@ export * from './exportTask'
|
||||
|
||||
// 批量订购相关
|
||||
export * from './bulkPurchase'
|
||||
export * from './julyIteration'
|
||||
|
||||
32
src/config/constants/julyIteration.ts
Normal file
32
src/config/constants/julyIteration.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* 七月迭代新增后台权限编码。
|
||||
* 页面和按钮统一引用这里的常量,后端菜单权限可直接复用同名编码。
|
||||
*/
|
||||
export const JULY_PERMISSIONS = {
|
||||
wecom: {
|
||||
page: 'wecom:config',
|
||||
application: 'wecom:application',
|
||||
member: 'wecom:member',
|
||||
scene: 'wecom:scene',
|
||||
binding: 'wecom:account_binding'
|
||||
},
|
||||
systemConfig: {
|
||||
payment: 'system_config:payment_methods'
|
||||
},
|
||||
speedTier: {
|
||||
view: 'iot_card:speed_tier',
|
||||
update: 'iot_card:speed_tier:update'
|
||||
},
|
||||
deviceAllocation: {
|
||||
page: 'device_task:allocation',
|
||||
create: 'device_task:allocation:create',
|
||||
detail: 'device_task:allocation:detail'
|
||||
},
|
||||
batchPurchase: {
|
||||
page: 'bulk_purchase:view',
|
||||
create: 'bulk_purchase:create',
|
||||
detail: 'bulk_purchase:detail'
|
||||
}
|
||||
} as const
|
||||
|
||||
export type JulyPermission = string
|
||||
Reference in New Issue
Block a user