Per bricks-framework spec: - Text/Title: use 'text' for non-i18n, 'otext'+'i18n:true' for i18n - Button: use 'label' for button text
180 lines
6.3 KiB
XML
180 lines
6.3 KiB
XML
{
|
|
"id": "unified_dashboard",
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"style": {
|
|
"padding": "16px"
|
|
}
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "20px",
|
|
"fontWeight": "bold",
|
|
"marginBottom": "16px"
|
|
},
|
|
"text": "工作台"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"style": {
|
|
"gap": "16px",
|
|
"flexWrap": "wrap",
|
|
"marginBottom": "24px"
|
|
}
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"style": {
|
|
"background": "#4CAF50",
|
|
"color": "white",
|
|
"padding": "24px",
|
|
"borderRadius": "8px",
|
|
"minWidth": "200px",
|
|
"flex": 1
|
|
}
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "14px",
|
|
"opacity": 0.9
|
|
},
|
|
"text": "客户总数"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"id": "lbl_customer_count",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "32px",
|
|
"fontWeight": "bold"
|
|
},
|
|
"text": "--"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"style": {
|
|
"background": "#2196F3",
|
|
"color": "white",
|
|
"padding": "24px",
|
|
"borderRadius": "8px",
|
|
"minWidth": "200px",
|
|
"flex": 1
|
|
}
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "14px",
|
|
"opacity": 0.9
|
|
},
|
|
"text": "商机总数"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"id": "lbl_opportunity_count",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "32px",
|
|
"fontWeight": "bold"
|
|
},
|
|
"text": "--"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"style": {
|
|
"background": "#FF9800",
|
|
"color": "white",
|
|
"padding": "24px",
|
|
"borderRadius": "8px",
|
|
"minWidth": "200px",
|
|
"flex": 1
|
|
}
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "14px",
|
|
"opacity": 0.9
|
|
},
|
|
"text": "合同总数"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"id": "lbl_contract_count",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "32px",
|
|
"fontWeight": "bold"
|
|
},
|
|
"text": "--"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"style": {
|
|
"background": "#F44336",
|
|
"color": "white",
|
|
"padding": "24px",
|
|
"borderRadius": "8px",
|
|
"minWidth": "200px",
|
|
"flex": 1
|
|
}
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "14px",
|
|
"opacity": 0.9
|
|
},
|
|
"text": "待审批"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"id": "lbl_approval_count",
|
|
"options": {
|
|
"style": {
|
|
"fontSize": "32px",
|
|
"fontWeight": "bold"
|
|
},
|
|
"text": "--"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |