refactor: task_list.ui改用DataViewer,删除pipeline_task.js

This commit is contained in:
yumoqing 2026-06-12 00:18:06 +08:00
parent 41d6ee03fa
commit 65984ae4a0

View File

@ -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"}
]
}
}