pipeline-sdlc/wwwroot/task_tree_popup.ui

40 lines
1.5 KiB
XML

{% set task_id = params_kw.get('task_id', '') %}
{% set task_title = params_kw.get('title', '') or 'Task' %}
{
"widgettype": "VBox",
"options": {"width": "100%", "padding": "8px"},
"subwidgets": [
{
"widgettype": "HBox",
"options": {"width": "100%", "marginBottom": "8px", "alignItems": "center", "gap": "8px"},
"subwidgets": [
{"widgettype": "Text", "options": {"text": "📋 {{task_title}}", "cfontsize": 15}},
{"widgettype": "Filler"},
{
"widgettype": "Button",
"options": {"label": "查看完整详情", "css": "text"},
"binds": [{
"wid": "self", "event": "click", "actiontype": "urlwidget",
"target": "app.main_content",
"mode": "replace",
"options": {"url": "{{entire_url('/pipeline_task/task_detail.ui')}}?task_id={{task_id}}"}
}]
}
]
},
{
"widgettype": "Tree",
"id": "step_tree",
"options": {
"title": "步骤树",
"parentField": "parent_step",
"idField": "id",
"textField": "label",
"dataurl": "{{entire_url('/pipeline_task/api/task_tree.dspy')}}?task_id={{task_id}}",
"css": "card"
}
},
{"widgettype": "Filler"}
]
}