34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
{% 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": "code", "label": "源上位系统", "required": true, "data": {{json.dumps(upapps, ensure_ascii=False)}}},
|
||
{"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/')}}"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|