diff --git a/wwwroot/base.ui b/wwwroot/base.ui index 63fdb94..e2a40ae 100644 --- a/wwwroot/base.ui +++ b/wwwroot/base.ui @@ -1,44 +1,180 @@ { - "widgettype": "Page", + "id": "unified_dashboard", + "widgettype": "VBox", "options": { - "title": "统一仪表板", - "style": {"height": "100vh", "padding": "0"} + "width": "100%", + "height": "100%", + "style": { + "padding": "16px" + } }, "subwidgets": [ + { + "widgettype": "Text", + "options": { + "label": "工作台", + "style": { + "fontSize": "20px", + "fontWeight": "bold", + "marginBottom": "16px" + } + } + }, { "widgettype": "HBox", - "options": {"style": {"height": "100%"}}, + "options": { + "style": { + "gap": "16px", + "flexWrap": "wrap", + "marginBottom": "24px" + } + }, "subwidgets": [ { "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": [ { "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": { - "width": "100%", - "bgcolor": "#1A1E2F", - "items": [ - {"label": "高管视图", "icon": "fa fa-dashboard", "url": "{{entire_url('dashboard.ui')}}?type=executive", "target": "app.dashboard-content"}, - {"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" + "label": "--", + "style": { + "fontSize": "32px", + "fontWeight": "bold" + } } } ] }, { "widgettype": "VBox", - "id": "dashboard-content", - "options": {"style": {"flex": 1, "overflow": "auto", "backgroundColor": "#f5f5f5"}} + "options": { + "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" + } + } + } + ] } ] } ] -} +} \ No newline at end of file