yumoqing aec650dcef sync: local modifications to unified_dashboard
- Updated core.py, init.py, mysql.ddl.sql
- Added __init__.py
- Added API files: dashboard_kpi, report_list
- Added UI files: base.ui, dashboard.ui, reports.ui
2026-04-28 18:55:07 +08:00

42 lines
1.5 KiB
XML

{
"widgettype": "Page",
"options": {
"title": "报表中心",
"style": {"height": "100%", "padding": "0"}
},
"subwidgets": [
{
"widgettype": "VBox",
"options": {"style": {"padding": "16px", "flex": 1, "overflow": "auto"}},
"subwidgets": [
{
"widgettype": "HBox",
"options": {"style": {"marginBottom": "16px", "gap": "8px"}},
"subwidgets": [
{"widgettype": "TextField", "id": "report_search", "options": {"label": "搜索报表", "placeholder": "报表名称", "style": {"flex": 1}}},
{"widgettype": "Button", "id": "btn_search", "options": {"text": "搜索", "variant": "primary"}}
]
},
{
"widgettype": "DataGrid",
"id": "report_grid",
"options": {
"url": "{{entire_url('api/report_list.dspy')}}",
"style": {"flex": 1},
"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 %}')"}
]
}
}
]
}
]
}