68 lines
1.9 KiB
XML
68 lines
1.9 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"maxWidth": "100%",
|
|
"padding": "15px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "审批详情",
|
|
"fontSize": "18px",
|
|
"fontWeight": "bold",
|
|
"marginBottom": "20px"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Form",
|
|
"options": {
|
|
"tblname": "approval_task",
|
|
"mode": "view",
|
|
"fields": [
|
|
"title",
|
|
"step_name",
|
|
"description",
|
|
"assigned_at",
|
|
"due_at"
|
|
],
|
|
"fieldLabels": {
|
|
"title": "审批事项",
|
|
"step_name": "审批步骤",
|
|
"description": "详细说明",
|
|
"assigned_at": "分配时间",
|
|
"due_at": "截止时间"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"marginTop": "30px",
|
|
"gap": "10px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Button",
|
|
"options": {
|
|
"onClick": "approve_task",
|
|
"label": "批准",
|
|
"bgcolor": "#28a745",
|
|
"color": "white",
|
|
"flex": "1"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Button",
|
|
"options": {
|
|
"onClick": "reject_task",
|
|
"label": "拒绝",
|
|
"bgcolor": "#dc3545",
|
|
"color": "white",
|
|
"flex": "1"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |