workflow_approval/wwwroot/approval_task_detail.ui
2026-04-16 14:40:37 +08:00

66 lines
1.5 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": {
"text": "批准",
"onClick": "approve_task",
"style": {
"backgroundColor": "#28a745",
"color": "white",
"flex": "1"
}
}
},
{
"widgettype": "Button",
"options": {
"text": "拒绝",
"onClick": "reject_task",
"style": {
"backgroundColor": "#dc3545",
"color": "white",
"flex": "1"
}
}
}
]
}
]
}