feat: 基础配置菜单(superuser)+会计RBAC路径
This commit is contained in:
parent
44d2a8c6c8
commit
8d641affad
13
load_path.py
13
load_path.py
@ -671,6 +671,19 @@ paths="""/ any
|
||||
/appbase/svgicon/add_svgicon.dspy owner.superuser
|
||||
/appbase/svgicon/update_svgicon.dspy owner.superuser
|
||||
/appbase/svgicon/index.ui owner.superuser
|
||||
/accounting/currency_list owner.superuser
|
||||
/accounting/currency_list/index.ui owner.superuser
|
||||
/accounting/currency_list/get_currency_list.dspy owner.superuser
|
||||
/accounting/currency_list/add_currency_list.dspy owner.superuser
|
||||
/accounting/currency_list/update_currency_list.dspy owner.superuser
|
||||
/accounting/currency_list/delete_currency_list.dspy owner.superuser
|
||||
/accounting/exchange_rate_list owner.superuser
|
||||
/accounting/exchange_rate_list/index.ui owner.superuser
|
||||
/accounting/exchange_rate_list/get_exchange_rate_list.dspy owner.superuser
|
||||
/accounting/exchange_rate_list/add_exchange_rate_list.dspy owner.superuser
|
||||
/accounting/exchange_rate_list/update_exchange_rate_list.dspy owner.superuser
|
||||
/accounting/exchange_rate_list/delete_exchange_rate_list.dspy owner.superuser
|
||||
|
||||
/msp logined
|
||||
/msp/keypress.ui logined
|
||||
/msp/devgroup logined
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
{% set role_str = roles|join(',') %}
|
||||
{% set is_customer = 'customer.' in role_str %}
|
||||
{% set is_customer_admin = 'customer.admin' in roles %}
|
||||
{% set is_superuser = 'owner.superuser' in roles %}
|
||||
{
|
||||
"widgettype": "Menu",
|
||||
"id": "global_nav_menu",
|
||||
@ -405,6 +406,44 @@
|
||||
"target": "app.sage_main_content"
|
||||
}
|
||||
{% endif %}
|
||||
{% if is_superuser %}
|
||||
,{
|
||||
"name": "sys_config",
|
||||
"label": "基础配置",
|
||||
"icon": "{{entire_url('/imgs/setting.svg')}}",
|
||||
"children": [
|
||||
{
|
||||
"name": "appcodes",
|
||||
"label": "编码管理",
|
||||
"url": "{{entire_url('/appbase/appcodes')}}",
|
||||
"target": "app.sage_main_content"
|
||||
},
|
||||
{
|
||||
"name": "appcodes_kv",
|
||||
"label": "编码值管理",
|
||||
"url": "{{entire_url('/appbase/appcodes_kv')}}",
|
||||
"target": "app.sage_main_content"
|
||||
},
|
||||
{
|
||||
"name": "svgicon",
|
||||
"label": "图标管理",
|
||||
"url": "{{entire_url('/appbase/svgicon')}}",
|
||||
"target": "app.sage_main_content"
|
||||
},
|
||||
{
|
||||
"name": "currency",
|
||||
"label": "币种管理",
|
||||
"url": "{{entire_url('/accounting/currency_list')}}",
|
||||
"target": "app.sage_main_content"
|
||||
},
|
||||
{
|
||||
"name": "exchange_rate",
|
||||
"label": "汇率管理",
|
||||
"url": "{{entire_url('/accounting/exchange_rate_list')}}",
|
||||
"target": "app.sage_main_content"
|
||||
}
|
||||
]
|
||||
}{% endif %}
|
||||
,{
|
||||
"name": "apikey_manage",
|
||||
"label": "API Key管理",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user