When many assets are returned, the results area needs scroll. Wrap the target VBox in a VScrollPanel with fixed height.
61 lines
1.8 KiB
XML
61 lines
1.8 KiB
XML
{% set current_group = params_kw.get('vendor_group_id', '') %}
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"padding": "16px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Title4",
|
|
"options": {
|
|
"text": "查看素材",
|
|
"fontWeight": "600",
|
|
"marginBottom": "16px"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Form",
|
|
"id": "view_assets_form",
|
|
"options": {
|
|
"fields": [
|
|
{
|
|
"uitype": "code",
|
|
"name": "vendor_group_id",
|
|
"label": "认证组合",
|
|
"dataurl": "{{entire_url('api/get_org_groups.dspy')}}",
|
|
"data_field": "value",
|
|
"text_field": "text",
|
|
"required": true,
|
|
"value": "{{ current_group }}"
|
|
}
|
|
]
|
|
},
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "submit",
|
|
"actiontype": "urlwidget",
|
|
"target": "app.rl_asset_results",
|
|
"options": {
|
|
"method": "POST",
|
|
"url": "{{entire_url('api/submit_list_assets.dspy')}}"
|
|
},
|
|
"mode": "replace"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VScrollPanel",
|
|
"options": {"height": "600px"},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"id": "rl_asset_results",
|
|
"options": {"padding": "16px"}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|