uapi/wwwroot/copy_uapi.ui

34 lines
1.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% set upapps = get_upapps_for_copy(request) %}
{
"widgettype": "VBox",
"options": {"padding": "16px", "width": "100%"},
"subwidgets": [
{
"widgettype": "Text",
"options": {"text": "选择目标上位系统将当前上位系统的所有API接口复制到目标系统"}
},
{
"widgettype": "Form",
"options": {
"submit_url": "{{entire_url('./api/copy_uapi.dspy')}}",
"fields": [
{"name": "source_upappid", "uitype": "hide", "value": "{{params_kw.get('upappid', '')}}"},
{"name": "target_upappid", "uitype": "code", "label": "目标上位系统", "required": true, "data": {{json.dumps(upapps, ensure_ascii=False)}}}
]
},
"binds": [
{
"wid": "self",
"event": "submited",
"actiontype": "urlwidget",
"target": "app.sage_main_content",
"mode": "replace",
"options": {
"url": "{{entire_url('/uapi/upapp/')}}"
}
}
]
}
]
}