Skip to content

Commit

Permalink
Merge pull request #7534 from GuoLiBin6/feat/glb-master-src
Browse files Browse the repository at this point in the history
feat: 补充权限
  • Loading branch information
GuoLiBin6 authored Jan 22, 2025
2 parents 0d608c8 + 1fd3705 commit 17f743e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
11 changes: 8 additions & 3 deletions src/constants/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ export const PERMISSION = {
policies_create: ['identity', 'policies', 'create'],
policies_delete: ['identity', 'policies', 'delete'],
policies_perform_public: ['identity', 'policies', 'perform', 'public'],
identity_services: ['identity', 'services', 'list'],
// 操作日志
log_list: ['log', 'actions', 'list'],
log_manage_list_splitable: ['log', 'actions', 'list', 'splitable'],
Expand Down Expand Up @@ -958,12 +959,14 @@ export const PERMISSION = {
bill_budgets_perform: ['meter', 'budgets', 'perform'],
// 预测
bill_predictions_query: ['meter', 'predictions', 'perform', 'query'],
// 账单
meter_payment_bills: ['meter', 'payment_bills', 'list'],
// 账单汇总
meter_summary_bills: ['meter', 'meter_summary_bills', 'list'],
// 实例账单
bill_associates_list: ['meter', 'associate_bills', 'list'],
// bill_associates_list: ['meter', 'associate_bills', 'list'],
// 资源账单
meter_resource_bills: ['meter', 'meter_resource_bills', 'list'],
meter_monthly_bills: ['meter', 'monthly_bills', 'list'],
// 流水账单
meter_daily_bills: ['meter', 'meter_daily_bills', 'list'],
// 价格对比
Expand Down Expand Up @@ -995,7 +998,7 @@ export const PERMISSION = {
// costalerts_list: ['meter', 'costalerts', 'list'],
// costalerts_create: ['meter', 'costalerts', 'create'],
// costalerts_delete: ['meter', 'costalerts', 'delete'],
bill_details_list: ['meter', 'bill_details', 'list'],
// bill_details_list: ['meter', 'bill_details', 'list'],
project_sharings_list: ['meter', 'project_sharings', 'list'],
project_sharings_create: ['meter', 'project_sharings', 'create'],
project_sharings_delete: ['meter', 'project_sharings', 'delete'],
Expand Down Expand Up @@ -1486,6 +1489,8 @@ export const PERMISSION = {

metadatas_perform_tag_value_pairs: ['compute', 'metadatas', 'perform', 'tag-value-pairs'],

topology_list: ['compute', 'topology', 'list'],

...extraPermissions,
}

Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2817,7 +2817,8 @@
"menu_monitor_operation": "Monitoring and Operations",
"menu_billing_accuracy": "Cost and Optimization",
"menu_iam_security": "Certification and Security",
"menu_system_config": "System Configuration"
"menu_system_config": "System Configuration",
"global_topology": "Global topology"
},
"originDictionary": {},
"res": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,8 @@
"menu_monitor_operation": "監視と運用次元",
"menu_billing_accuracy": "費用と最適化",
"menu_iam_security": "認証とセキュリティ",
"menu_system_config": "システム設定"
"menu_system_config": "システム設定",
"global_topology": "グローバルトポロジ"
},
"originDictionary": {},
"res": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2836,7 +2836,8 @@
"menu_monitor_operation": "监控与运维",
"menu_billing_accuracy": "费用与优化",
"menu_iam_security": "认证与安全",
"menu_system_config": "系统配置"
"menu_system_config": "系统配置",
"global_topology": "全局拓扑"
},
"originDictionary": {},
"res": {
Expand Down
1 change: 1 addition & 0 deletions src/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ router.beforeEach(async (to, from, next) => {
'navbar_hidden_items',
'dashboard_hidden_actions',
'fee_hidden_items',
'bill_resource_hidden_columns',
'vminstance_hidden_menus',
'vminstance_configured_callback_address',
],
Expand Down

0 comments on commit 17f743e

Please sign in to comment.