unified_dashboard/wwwroot/mobile_reports.ui
yumoqing 32622d0a97 fix: Text widgets use 'text' not 'label', Button widgets use 'label' not 'text'
Per bricks-framework spec:
- Text/Title: use 'text' for non-i18n, 'otext'+'i18n:true' for i18n
- Button: use 'label' for button text
2026-05-05 19:28:26 +08:00

62 lines
1.9 KiB
XML

{
"widgettype": "VBox",
"options": {
"maxWidth": "100%",
"padding": "15px"
},
"subwidgets": [
{
"widgettype": "HBox",
"options": {
"alignItems": "center",
"justifyContent": "space-between",
"marginBottom": "20px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "报表中心",
"fontSize": "18px",
"fontWeight": "bold"
}
},
{
"widgettype": "Button",
"options": {
"onClick": "goto('unified_dashboard/report_template/create.ui')",
"style": {
"backgroundColor": "#007bff",
"color": "white",
"border": "none",
"padding": "6px 12px",
"borderRadius": "4px"
},
"label": "新建报表"
}
}
]
},
{
"widgettype": "DataGrid",
"options": {
"tblname": "report_template",
"where": {
"org_id": "${logined_orgid}",
"is_active": "Y"
},
"fields": [
"template_name",
"report_type",
"created_at"
],
"fieldLabels": {
"template_name": "报表名称",
"report_type": "报表类型",
"created_at": "创建时间"
},
"onRowClick": "view_report('${id}')"
}
}
]
}