From 65984ae4a0ad8ce46285f43bbda40f03f70e3684 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 12 Jun 2026 00:18:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20task=5Flist.ui=E6=94=B9=E7=94=A8Dat?= =?UTF-8?q?aViewer=EF=BC=8C=E5=88=A0=E9=99=A4pipeline=5Ftask.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/task_list.ui | 55 ++++++++++++-------------------------------- 1 file changed, 15 insertions(+), 40 deletions(-) diff --git a/wwwroot/task_list.ui b/wwwroot/task_list.ui index a4deb06..153a20c 100644 --- a/wwwroot/task_list.ui +++ b/wwwroot/task_list.ui @@ -1,42 +1,17 @@ { - "widgettype": "VBox", - "options": {"width": "100%", "padding": "16px"}, - "subwidgets": [ - { - "widgettype": "HBox", - "options": {"width": "100%", "marginBottom": "16px", "gap": "12px"}, - "subwidgets": [ - { - "widgettype": "Input", - "options": {"name": "filter_pipeline", "placeholder": "按产线筛选", "width": "200px"} - }, - { - "widgettype": "Button", - "options": {"label": "查询", "icon": "search"}, - "binds": [{ - "wid": "self", "event": "click", "actiontype": "script", - "target": "task_table_area", - "script": "loadTaskList();" - }] - }, - { - "widgettype": "Button", - "options": {"label": "刷新", "icon": "refresh"}, - "binds": [{ - "wid": "self", "event": "click", "actiontype": "script", - "target": "task_table_area", - "script": "loadTaskList();" - }] - } - ] - }, - { - "widgettype": "VBox", - "id": "task_table_area", - "options": {"width": "100%", "flex": "1", "minHeight": "400px", "bgcolor": "var(--card-bg)", "padding": "16px"}, - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "加载中..."}} - ] - } - ] + "widgettype": "DataViewer", + "options": { + "url": "{{entire_url('/pipeline_task/api/task_list.dspy')}}", + "title": "任务中心", + "pageSize": 20, + "new_data_url": "{{entire_url('/pipeline_task/task_submit.ui')}}", + "fields": [ + {"name": "id", "title": "任务ID", "width": "120px"}, + {"name": "title", "title": "标题", "width": "30%"}, + {"name": "pipeline_type", "title": "产线类型", "width": "100px"}, + {"name": "state", "title": "状态", "width": "100px"}, + {"name": "current_version", "title": "版本", "width": "80px"}, + {"name": "created_at", "title": "创建时间", "width": "160px"} + ] + } }