{ "widgettype": "Page", "options": { "title": "报表中心", "height": "100%", "padding": "0" }, "subwidgets": [ { "widgettype": "VBox", "options": { "padding": "16px", "flex": 1, "overflow": "auto" }, "subwidgets": [ { "widgettype": "HBox", "options": { "marginBottom": "16px", "gap": "8px" }, "subwidgets": [ { "widgettype": "TextField", "id": "report_search", "options": { "label": "搜索报表", "placeholder": "报表名称", "flex": 1 } }, { "widgettype": "Button", "id": "btn_search", "options": { "variant": "primary", "label": "搜索" } } ] }, { "widgettype": "DataGrid", "id": "report_grid", "options": { "url": "{{entire_url('api/report_list.dspy')}}", "columns": [ { "field": "template_name", "header": "报表名称", "width": 200 }, { "field": "category", "header": "分类", "width": 120 }, { "field": "description", "header": "说明", "width": 300 }, { "field": "is_active", "header": "状态", "width": 80 }, { "field": "created_at", "header": "创建时间", "width": 160 } ], "toolbar": [ { "type": "button", "text": "查看", "icon": "view", "action": "navigate('main/unified_dashboard/report_view.ui?id={% raw %}{{selectedRow.id}}{% endraw %}')" } ], "flex": 1 } } ] } ] }