50 lines
2.0 KiB
XML
50 lines
2.0 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": "\ud83d\udccb {{task_title}}", "cfontsize": 15}},
|
|
{"widgettype": "Filler"},
|
|
{
|
|
"widgettype": "Button",
|
|
"options": {"label": "\u67e5\u770b\u5b8c\u6574\u8be6\u60c5", "css": "text"},
|
|
"binds": [{
|
|
"wid": "self", "event": "click", "actiontype": "urlwidget",
|
|
"target": "app.pipeline_task_content",
|
|
"mode": "replace",
|
|
"options": {"url": "{{entire_url('task_detail.ui')}}?task_id={{task_id}}"}
|
|
}]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "Tree",
|
|
"id": "step_tree",
|
|
"options": {
|
|
"title": "\u6b65\u9aa4\u6811",
|
|
"parentField": "parent_step",
|
|
"idField": "id",
|
|
"textField": "label",
|
|
"dataurl": "{{entire_url('api/task_tree.dspy')}}?task_id={{task_id}}",
|
|
"css": "card"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"id": "step_io_panel",
|
|
"options": {"width": "100%", "marginTop": "8px", "css": "card", "padding": "8px"},
|
|
"subwidgets": [
|
|
{"widgettype": "Text", "options": {"text": "\ud83d\udce6 \u70b9\u51fb\u5de6\u4fa7\u6b65\u9aa4\u67e5\u770b\u8f93\u5165\u8f93\u51fa\uff0c\u6216\u70b9\u51fb\u4e0a\u65b9\u201c\u67e5\u770b\u5b8c\u6574\u8be6\u60c5\u201d\u8fdb\u5165\u8be6\u60c5\u9875", "color": "#888"}}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "Filler"
|
|
}
|
|
]
|
|
}
|