- 纯薄交互层,无数据表,调用 pipeline-service 引擎函数 - 6个dspy API(submit/list/detail/node/modify/control) - 4个UI页面(index/list/detail/submit) - pipeline_task.js 交互辅助函数 - load_path.py RBAC 权限注册 - 完整 README 文档
60 lines
2.4 KiB
XML
60 lines
2.4 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {"width": "100%", "padding": "16px"},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {"width": "100%", "marginBottom": "16px", "alignItems": "center"},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Button",
|
|
"options": {"label": "返回列表", "icon": "arrow-left"},
|
|
"binds": [{
|
|
"wid": "self", "event": "click", "actiontype": "urlwidget",
|
|
"target": "app.pipeline_task_content",
|
|
"options": {"url": "{{entire_url('task_list.ui')}}"},
|
|
"mode": "replace"
|
|
}]
|
|
},
|
|
{"widgettype": "Title", "options": {"text": "提交新任务", "cfontsize": 20}}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {"width": "600px", "bgcolor": "var(--card-bg)", "padding": "24px"},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Form",
|
|
"options": {
|
|
"name": "submit_form",
|
|
"url": "{{entire_url('api/task_submit.dspy')}}",
|
|
"method": "POST"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Input",
|
|
"options": {"name": "pipeline_id", "label": "产线ID", "required": true, "width": "100%"}
|
|
},
|
|
{
|
|
"widgettype": "Input",
|
|
"options": {"name": "title", "label": "任务标题", "required": true, "width": "100%"}
|
|
},
|
|
{
|
|
"widgettype": "Input",
|
|
"options": {"name": "mode", "label": "模式(可选)", "width": "100%"}
|
|
},
|
|
{
|
|
"widgettype": "TextArea",
|
|
"options": {"name": "input_text", "label": "输入文本(可选)", "width": "100%", "rows": 6}
|
|
},
|
|
{
|
|
"widgettype": "Button",
|
|
"options": {"label": "提交", "actiontype": "method", "method": "submit"}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|