From bdad3aded3477afdf4db84ddce9280298525f330 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 28 Aug 2026 16:34:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(menu):=20=E7=A7=BB=E9=99=A4=E4=BA=A7?= =?UTF-8?q?=E7=BA=BF=E7=AE=A1=E7=90=86=E8=8F=9C=E5=8D=95=E9=A1=B9;=20?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=A7=92=E8=89=B2=E9=A6=96=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=BA=A7=E5=93=81=E5=B1=95=E7=A4=BA+?= =?UTF-8?q?=E6=88=91=E7=9A=84=E8=B4=A6=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 产线管理三功能已从后端移除(死库存), 菜单同步删除 - customer.customer 角色: 首菜单=产品展示(商城卡片页), 我的账户子菜单 (充值/我的账户/我的权益); 管理员/其他角色走原菜单 - is_admin 判断补充 *.superuser/*.admin 通配形式 --- wwwroot/index.ui | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index f77aebe..e6f53e0 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -1,5 +1,7 @@ {% set roles = get_user_roles(get_user()) %} {% set is_fin = ('owner.superuser' in roles) or ('owner.admin' in roles) or ('owner.account' in roles) or ('reseller.admin' in roles) or ('reseller.accountant' in roles) or ('reseller.operator' in roles) %} +{% set is_customer = ('customer.customer' in roles) or ('*.customer' in roles) %} +{% set is_admin = ('owner.superuser' in roles) or ('owner.admin' in roles) or ('*.superuser' in roles) or ('*.admin' in roles) %} { "id": "app", "widgettype": "VBox", @@ -107,12 +109,36 @@ "height": "100%", "target": "app.main_content", "items": [ +{% if is_customer and not is_admin %} { - "name": "pipeline_core", - "label": "产线管理", - "icon": "{{entire_url('/imgs/cubes.svg')}}", - "script": "this.open_tab({name:'pipeline_core',label:'产线管理',url:'/pipeline_core',removable:true})" + "name": "product_showcase", + "label": "产品展示", + "icon": "", + "script": "this.open_tab({name:'product_showcase',label:'产品展示',url:'/product_management/storefront/index.ui',removable:true})" }, + { + "name": "cust_account", + "label": "我的账户", + "icon": "", + "items": [ + { + "name": "cust_recharge", + "label": "充值", + "script": "this.open_tab({name:'cust_recharge',label:'充值',url:'/unipay/recharge.ui',removable:true})" + }, + { + "name": "cust_myaccounts", + "label": "我的账户", + "script": "this.open_tab({name:'cust_myaccounts',label:'我的账户',url:'/accounting/myaccounts.ui',removable:true})" + }, + { + "name": "cust_subscriptions", + "label": "我的权益", + "script": "this.open_tab({name:'cust_subscriptions',label:'我的权益',url:'/product_management/storefront/api/my_subscriptions.dspy',removable:true})" + } + ] + } +{% else %} { "name": "llm_manage", "label": "模型管理", @@ -486,6 +512,7 @@ } ] } +{% endif %} ] } }