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", "widgettype": "DataViewer",
"options": {"width": "100%", "padding": "16px"}, "options": {
"subwidgets": [ "url": "{{entire_url('/pipeline_task/api/task_list.dspy')}}",
{ "title": "任务中心",
"widgettype": "HBox", "pageSize": 20,
"options": {"width": "100%", "marginBottom": "16px", "gap": "12px"}, "new_data_url": "{{entire_url('/pipeline_task/task_submit.ui')}}",
"subwidgets": [ "fields": [
{ {"name": "id", "title": "任务ID", "width": "120px"},
"widgettype": "Input", {"name": "title", "title": "标题", "width": "30%"},
"options": {"name": "filter_pipeline", "placeholder": "按产线筛选", "width": "200px"} {"name": "pipeline_type", "title": "产线类型", "width": "100px"},
}, {"name": "state", "title": "状态", "width": "100px"},
{ {"name": "current_version", "title": "版本", "width": "80px"},
"widgettype": "Button", {"name": "created_at", "title": "创建时间", "width": "160px"}
"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": "加载中..."}}
]
}
]
} }