From e7c6ec548dd3c5b3ae4f888a0ac56d3862f9333a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 5 May 2026 15:21:05 +0800 Subject: [PATCH] bugfix --- wwwroot/index.ui | 180 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 180 insertions(+) create mode 100644 wwwroot/index.ui diff --git a/wwwroot/index.ui b/wwwroot/index.ui new file mode 100644 index 0000000..24f8959 --- /dev/null +++ b/wwwroot/index.ui @@ -0,0 +1,180 @@ +{ + "id": "crm_main", + "widgettype": "VBox", + "options": { + "width": "100%", + "height": "100vh", + "style": { + "margin": "0", + "padding": "0" + } + }, + "subwidgets": [ + { + "widgettype": "HBox", + "options": { + "height": "56px", + "style": { + "background": "#1a73e8", + "color": "white", + "alignItems": "center", + "padding": "0 16px", + "boxShadow": "0 2px 4px rgba(0,0,0,0.1)" + } + }, + "subwidgets": [ + { + "widgettype": "Text", + "options": { + "label": "CRM系统", + "style": { + "fontSize": "20px", + "fontWeight": "bold", + "color": "white" + } + } + }, + { + "widgettype": "Filler", + "options": {} + }, + { + "widgettype": "Text", + "id": "lbl_username", + "options": { + "label": "用户: admin", + "style": { + "color": "white", + "marginRight": "16px" + } + } + }, + { + "widgettype": "Button", + "id": "btn_logout", + "options": { + "label": "退出登录", + "variant": "text", + "style": { + "color": "white" + } + } + } + ] + }, + { + "widgettype": "HBox", + "options": { + "flex": 1, + "style": { + "overflow": "hidden" + } + }, + "subwidgets": [ + { + "widgettype": "VBox", + "options": { + "width": "220px", + "style": { + "background": "#f5f5f5", + "borderRight": "1px solid #e0e0e0", + "overflowY": "auto", + "padding": "8px 0" + } + }, + "subwidgets": [ + { + "widgettype": "Menu", + "id": "main_menu", + "options": { + "items": [ + { + "name": "dashboard", + "label": "工作台", + "icon": "dashboard", + "url": "/unified_dashboard" + }, + { + "name": "customers", + "label": "客户管理", + "icon": "people", + "url": "/customer_management" + }, + { + "name": "opportunities", + "label": "商机管理", + "icon": "trending_up", + "url": "/opportunity_management" + }, + { + "name": "contracts", + "label": "合同管理", + "icon": "description", + "url": "/contract_management" + }, + { + "name": "finance", + "label": "财务管理", + "icon": "account_balance", + "url": "/financial_management" + }, + { + "name": "approvals", + "label": "审批管理", + "icon": "check_circle", + "url": "/workflow_approval" + } + ], + "style": { + "width": "100%" + } + } + } + ] + }, + { + "widgettype": "VBox", + "options": { + "flex": 1, + "style": { + "overflow": "hidden", + "background": "#fafafa" + } + }, + "subwidgets": [ + { + "widgettype": "Iframe", + "id": "content_frame", + "options": { + "url": "/unified_dashboard", + "width": "100%", + "height": "100%", + "style": { + "border": "none" + } + } + } + ] + } + ] + } + ], + "binds": [ + { + "wid": "main_menu", + "event": "itemclick", + "actiontype": "navigate", + "target": "{{item.url}}" + }, + { + "wid": "btn_logout", + "event": "click", + "actiontype": "fetch", + "url": "{{entire_url('api/logout.dspy')}}", + "method": "POST", + "callback": { + "success": "navigate('/login.ui')" + } + } + ] +}