From 1fd3705baff75d89342dd33291dbd601bee5cf60 Mon Sep 17 00:00:00 2001 From: GuoLiBin6 Date: Wed, 22 Jan 2025 15:35:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/permission.js | 11 ++++++++--- src/locales/en.json | 3 ++- src/locales/ja-JP.json | 3 ++- src/locales/zh-CN.json | 3 ++- src/permission.js | 1 + 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/constants/permission.js b/src/constants/permission.js index 217e98f5b..9eebc78f9 100644 --- a/src/constants/permission.js +++ b/src/constants/permission.js @@ -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'], @@ -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'], // 价格对比 @@ -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'], @@ -1486,6 +1489,8 @@ export const PERMISSION = { metadatas_perform_tag_value_pairs: ['compute', 'metadatas', 'perform', 'tag-value-pairs'], + topology_list: ['compute', 'topology', 'list'], + ...extraPermissions, } diff --git a/src/locales/en.json b/src/locales/en.json index 70bf05ef4..edbe7029d 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -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": { diff --git a/src/locales/ja-JP.json b/src/locales/ja-JP.json index f0bc9b1cc..57a5c5f1d 100644 --- a/src/locales/ja-JP.json +++ b/src/locales/ja-JP.json @@ -2837,7 +2837,8 @@ "menu_monitor_operation": "監視と運用次元", "menu_billing_accuracy": "費用と最適化", "menu_iam_security": "認証とセキュリティ", - "menu_system_config": "システム設定" + "menu_system_config": "システム設定", + "global_topology": "グローバルトポロジ" }, "originDictionary": {}, "res": { diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index 6d3a0d158..7b8f70709 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -2836,7 +2836,8 @@ "menu_monitor_operation": "监控与运维", "menu_billing_accuracy": "费用与优化", "menu_iam_security": "认证与安全", - "menu_system_config": "系统配置" + "menu_system_config": "系统配置", + "global_topology": "全局拓扑" }, "originDictionary": {}, "res": { diff --git a/src/permission.js b/src/permission.js index 9e08196d0..65380ee39 100644 --- a/src/permission.js +++ b/src/permission.js @@ -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', ],