fix: task_submit.ui Form使用fields数组,移除arrow-left icon,修复target ID
This commit is contained in:
parent
f8a218ef6f
commit
3c371f8898
@ -8,10 +8,10 @@
|
|||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype": "Button",
|
"widgettype": "Button",
|
||||||
"options": {"label": "返回列表", "icon": "arrow-left"},
|
"options": {"label": "返回列表"},
|
||||||
"binds": [{
|
"binds": [{
|
||||||
"wid": "self", "event": "click", "actiontype": "urlwidget",
|
"wid": "self", "event": "click", "actiontype": "urlwidget",
|
||||||
"target": "app.pipeline_task_content",
|
"target": "-pipeline_task_content",
|
||||||
"options": {"url": "{{entire_url('task_list.ui')}}"},
|
"options": {"url": "{{entire_url('task_list.ui')}}"},
|
||||||
"mode": "replace"
|
"mode": "replace"
|
||||||
}]
|
}]
|
||||||
@ -27,31 +27,19 @@
|
|||||||
"widgettype": "Form",
|
"widgettype": "Form",
|
||||||
"options": {
|
"options": {
|
||||||
"name": "submit_form",
|
"name": "submit_form",
|
||||||
"url": "{{entire_url('api/task_submit.dspy')}}",
|
"submit_url": "{{entire_url('api/task_submit.dspy')}}",
|
||||||
"method": "POST"
|
"fields": [
|
||||||
|
{"name": "pipeline_id", "label": "产线ID", "uitype": "str"},
|
||||||
|
{"name": "title", "label": "任务标题", "uitype": "str"},
|
||||||
|
{"name": "mode", "label": "模式(可选)", "uitype": "str"},
|
||||||
|
{"name": "input_text", "label": "输入文本(可选)", "uitype": "text"}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"subwidgets": [
|
"binds": [{
|
||||||
{
|
"wid": "self", "event": "submit", "actiontype": "urlwidget",
|
||||||
"widgettype": "Input",
|
"target": "self",
|
||||||
"options": {"name": "pipeline_id", "label": "产线ID", "required": true, "width": "100%"}
|
"options": {"method": "POST", "url": "{{entire_url('api/task_submit.dspy')}}"}
|
||||||
},
|
}]
|
||||||
{
|
|
||||||
"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"}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user