platformbiz/wwwroot/add_provider.ui
2026-03-10 15:20:25 +08:00

51 lines
882 B
XML

{% set roles = get_user_roles(get_user()) %}
{% if "owner.operator" in roles %}
{
"widgettype": "Form",
"options": {
"description": "添加平台供应商",
"submit_url": "{{entire_url('add_provider.dspy')}}",
"fields":[
{
"name": "orgname",
"label": "供应商名",
"uitype": "str",
"required": true
}
],
"binds":[
{
"wid": "self",
"event": "submit",
"actiontype": "urlwidget",
"target": "self",
"options":{
"method": "POST",
"params":{},
"url": "{{entire_url('add_provider.dspy')}}"
}
}
]
}
}
{% else %}
{
"widgettype": "PopupWindow",
"options": {
"content":{
"widgettype": "Text",
"options": {
"otext": "你无权使用此功能",
"i18n": true
}
},
"auto_open": true,
"auto_close": true,
"tiemout": 4,
"archor": "cc",
"cwidth": 5,
"cheight": 10
}
}
{% endif %}