From 33fb5fb919463e93e5a8cbd57ca203ce5ef90c0b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 27 Aug 2026 18:13:23 +0800 Subject: [PATCH] =?UTF-8?q?security(menu):=20=E8=B4=A6=E5=8A=A1=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=8F=9C=E5=8D=95=E8=A7=92=E8=89=B2=E9=97=A8=E7=A6=81?= =?UTF-8?q?=E2=80=94=E2=80=94=E8=B4=A2=E5=8A=A1=E5=90=8E=E5=8F=B0=E9=A1=B9?= =?UTF-8?q?=E4=BB=85=E8=B4=A2=E5=8A=A1=E8=A7=92=E8=89=B2=E5=8F=AF=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 客户/普通用户只见自服务项(我的账户/账务明细/账单/我的信用额度); 账户余额台账、科目、分录配置、信用额度管理、币种、汇率、记账日志 仅 owner 财务角色与分销商管理员/会计/运营可见。 --- wwwroot/index.ui | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 2525bb7..f77aebe 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -1,3 +1,5 @@ +{% 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) %} { "id": "app", "widgettype": "VBox", @@ -181,11 +183,6 @@ "label": "我的账户", "script": "this.open_tab({name:'acc_myaccounts',label:'我的账户',url:'/accounting/myaccounts.ui',removable:true})" }, - { - "name": "acc_balance", - "label": "账户余额", - "script": "this.open_tab({name:'acc_balance',label:'账户余额',url:'/accounting/acc_balance/index.ui',removable:true})" - }, { "name": "acc_detail", "label": "账务明细", @@ -196,6 +193,18 @@ "label": "账单", "script": "this.open_tab({name:'acc_billing',label:'账单',url:'/accounting/billing.ui',removable:true})" }, + { + "name": "acc_mycredit", + "label": "我的信用额度", + "script": "this.open_tab({name:'acc_mycredit',label:'我的信用额度',url:'/accounting/credit_limit/credit_overview.ui',removable:true})" + } +{% if is_fin %} + , + { + "name": "acc_balance", + "label": "账户余额", + "script": "this.open_tab({name:'acc_balance',label:'账户余额',url:'/accounting/acc_balance/index.ui',removable:true})" + }, { "name": "acc_subject", "label": "科目配置", @@ -231,6 +240,7 @@ "label": "记账日志", "script": "this.open_tab({name:'acc_log',label:'记账日志',url:'/accounting/accounting_log/index.ui',removable:true})" } +{% endif %} ] }, {