181 lines
4.4 KiB
XML
181 lines
4.4 KiB
XML
{
|
|
"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')"
|
|
}
|
|
}
|
|
]
|
|
}
|