This commit is contained in:
yumoqing 2025-02-14 10:33:21 +08:00
parent 9e0c8703ad
commit dee14b6997
4 changed files with 35 additions and 5 deletions

View File

@ -1,9 +1,11 @@
{
"tblname":"prodtype",
"uitype":"tree",
"params":{
"data_params":{
"parrentid":"null"
},
"idField":"id",
"textField":"path",
"parentField":"parentid",
"editable":true,
"browserfields": {
"exclouded": ["id", "parentid" ],
"alters": {}

View File

@ -1,6 +1,7 @@
{
"tblname":"product",
"params":{
"logined_userorgid":"ownerid",
"browserfields": {
"exclouded": ["id"],
"alters": {}

View File

@ -1,6 +1,6 @@
#!/usr/bin/bash
python ~/py/rbac/script/roleperm.py sage platformbiz reseller sale agreements agreedetail agreedetailstep agreeproduct organization
python ~/py/rbac/script/roleperm.py sage platformbiz reseller operator coupontype agreements agreedetail agreedetailstep agreeproduct organization product prodpricing prodpricingtab coupontype coupon coupon_log recharge_log resource biz_order
python ~/py/rbac/script/roleperm.py sage platformbiz reseller sale reseller retail_agree agreedetail agreedetailstep agreeproduct organization
python ~/py/rbac/script/roleperm.py sage platformbiz reseller operator provide_agree coupontype agreedetail agreedetailstep agreeproduct organization product prodpricing prodpricingtab coupontype coupon coupon_log recharge_log resource biz_order
python ~/py/rbac/script/roleperm.py sage platformbiz owner operator paychannel prodtype
python ~/py/rbac/script/roleperm.py sage platformbiz customer customer coupon coupon_log biz_order recharge_log resource

27
wwwroot/menu.ui Normal file
View File

@ -0,0 +1,27 @@
{% set roles = get_user_roles(get_user()) %}
{
"widgettype":"Menu",
"options":{
"target":"page_center",
"cwidth":10,
"items":[
{% if 'reseller.operator' in roles %}
{
"name":"provider",
"label":"供应商管理"
"url":"{{entire_url('/platformbiz/provider')}}"
}
{% endif %}
{% if 'reseller.sale' in roles %}
{
"name":"reseller",
"label":"分销商管理",
"url":"{{entire_url('/platformbiz/reseller'}}"
}
{% endif %}
{% if 'reseller.accountant' in roles %}
{% endif %}
{}
]
}
}