Replace custom JS fetch script with proper bricks-native pattern: - actiontype: urlwidget, target: app.rl_asset_results, mode: replace - method: POST in urlwidget options (required for form data) - Remove duplicate id from dspy response widgets (id belongs to container only)
55 lines
1.6 KiB
XML
55 lines
1.6 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": "VBox",
|
|
"id": "rl_asset_results",
|
|
"options": {"padding": "16px"}
|
|
}
|
|
]
|
|
}
|