From 3c371f88981c82c96cdd4ceeea277b31123e5793 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 12 Jun 2026 01:20:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20task=5Fsubmit.ui=20Form=E4=BD=BF?= =?UTF-8?q?=E7=94=A8fields=E6=95=B0=E7=BB=84=EF=BC=8C=E7=A7=BB=E9=99=A4arr?= =?UTF-8?q?ow-left=20icon=EF=BC=8C=E4=BF=AE=E5=A4=8Dtarget=20ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/task_submit.ui | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/wwwroot/task_submit.ui b/wwwroot/task_submit.ui index 35b2f6f..8af1251 100644 --- a/wwwroot/task_submit.ui +++ b/wwwroot/task_submit.ui @@ -8,10 +8,10 @@ "subwidgets": [ { "widgettype": "Button", - "options": {"label": "返回列表", "icon": "arrow-left"}, + "options": {"label": "返回列表"}, "binds": [{ "wid": "self", "event": "click", "actiontype": "urlwidget", - "target": "app.pipeline_task_content", + "target": "-pipeline_task_content", "options": {"url": "{{entire_url('task_list.ui')}}"}, "mode": "replace" }] @@ -27,31 +27,19 @@ "widgettype": "Form", "options": { "name": "submit_form", - "url": "{{entire_url('api/task_submit.dspy')}}", - "method": "POST" + "submit_url": "{{entire_url('api/task_submit.dspy')}}", + "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": [ - { - "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"} - } - ] + "binds": [{ + "wid": "self", "event": "submit", "actiontype": "urlwidget", + "target": "self", + "options": {"method": "POST", "url": "{{entire_url('api/task_submit.dspy')}}"} + }] } ] }