This commit is contained in:
yumoqing 2026-05-03 14:46:49 +08:00
parent 0337665648
commit 27a9969cc1

View File

@ -1,42 +1,178 @@
{ {
"widgettype": "Page", "id": "unified_dashboard",
"widgettype": "VBox",
"options": { "options": {
"title": "统一仪表板", "width": "100%",
"style": {"height": "100vh", "padding": "0"} "height": "100%",
"style": {
"padding": "16px"
}
}, },
"subwidgets": [ "subwidgets": [
{
"widgettype": "Text",
"options": {
"label": "工作台",
"style": {
"fontSize": "20px",
"fontWeight": "bold",
"marginBottom": "16px"
}
}
},
{ {
"widgettype": "HBox", "widgettype": "HBox",
"options": {"style": {"height": "100%"}}, "options": {
"style": {
"gap": "16px",
"flexWrap": "wrap",
"marginBottom": "24px"
}
},
"subwidgets": [ "subwidgets": [
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": {"style": {"width": "220px", "backgroundColor": "#1A1E2F", "padding": "8px"}}, "options": {
"style": {
"background": "#4CAF50",
"color": "white",
"padding": "24px",
"borderRadius": "8px",
"minWidth": "200px",
"flex": 1
}
},
"subwidgets": [ "subwidgets": [
{ {
"widgettype": "Text", "widgettype": "Text",
"options": {"text": "数据看板", "style": {"color": "#fff", "fontSize": "16px", "fontWeight": "bold", "padding": "12px 8px"}} "options": {
"label": "客户总数",
"style": {
"fontSize": "14px",
"opacity": 0.9
}
}
}, },
{ {
"widgettype": "Menu", "widgettype": "Text",
"id": "lbl_customer_count",
"options": { "options": {
"width": "100%", "label": "--",
"bgcolor": "#1A1E2F", "style": {
"items": [ "fontSize": "32px",
{"label": "高管视图", "icon": "fa fa-dashboard", "url": "{{entire_url('dashboard.ui')}}?type=executive", "target": "app.dashboard-content"}, "fontWeight": "bold"
{"label": "销售视图", "icon": "fa fa-line-chart", "url": "{{entire_url('dashboard.ui')}}?type=sales", "target": "app.dashboard-content"}, }
{"label": "财务视图", "icon": "fa fa-money", "url": "{{entire_url('dashboard.ui')}}?type=finance", "target": "app.dashboard-content"},
{"label": "报表中心", "icon": "fa fa-file-text", "url": "{{entire_url('reports.ui')}}", "target": "app.dashboard-content"}
],
"menuitem_css": "menuitem"
} }
} }
] ]
}, },
{ {
"widgettype": "VBox", "widgettype": "VBox",
"id": "dashboard-content", "options": {
"options": {"style": {"flex": 1, "overflow": "auto", "backgroundColor": "#f5f5f5"}} "style": {
"background": "#2196F3",
"color": "white",
"padding": "24px",
"borderRadius": "8px",
"minWidth": "200px",
"flex": 1
}
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"label": "商机总数",
"style": {
"fontSize": "14px",
"opacity": 0.9
}
}
},
{
"widgettype": "Text",
"id": "lbl_opportunity_count",
"options": {
"label": "--",
"style": {
"fontSize": "32px",
"fontWeight": "bold"
}
}
}
]
},
{
"widgettype": "VBox",
"options": {
"style": {
"background": "#FF9800",
"color": "white",
"padding": "24px",
"borderRadius": "8px",
"minWidth": "200px",
"flex": 1
}
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"label": "合同总数",
"style": {
"fontSize": "14px",
"opacity": 0.9
}
}
},
{
"widgettype": "Text",
"id": "lbl_contract_count",
"options": {
"label": "--",
"style": {
"fontSize": "32px",
"fontWeight": "bold"
}
}
}
]
},
{
"widgettype": "VBox",
"options": {
"style": {
"background": "#F44336",
"color": "white",
"padding": "24px",
"borderRadius": "8px",
"minWidth": "200px",
"flex": 1
}
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"label": "待审批",
"style": {
"fontSize": "14px",
"opacity": 0.9
}
}
},
{
"widgettype": "Text",
"id": "lbl_approval_count",
"options": {
"label": "--",
"style": {
"fontSize": "32px",
"fontWeight": "bold"
}
}
}
]
} }
] ]
} }