diff --git a/frontend/src/api/modules/log.ts b/frontend/src/api/modules/log.ts index 22e2adf4f..de01f26b0 100644 --- a/frontend/src/api/modules/log.ts +++ b/frontend/src/api/modules/log.ts @@ -18,8 +18,9 @@ export const cleanLogs = (param: Log.CleanLog) => { return http.post(`/core/logs/clean`, param); }; -export const searchTasks = (req: Log.SearchTaskReq) => { - return http.post>(`/logs/tasks/search`, req); +export const searchTasks = (req: Log.SearchTaskReq, node?: string) => { + const params = node ? `?operateNode=${node}` : ''; + return http.post>(`/logs/tasks/search${params}`, req); }; export const countExecutingTask = () => { diff --git a/frontend/src/components/node-select/index.vue b/frontend/src/components/node-select/index.vue new file mode 100644 index 000000000..eef73e52f --- /dev/null +++ b/frontend/src/components/node-select/index.vue @@ -0,0 +1,48 @@ + + + diff --git a/frontend/src/components/task-list/index.vue b/frontend/src/components/task-list/index.vue index e1c0ea482..6fd8cd93d 100644 --- a/frontend/src/components/task-list/index.vue +++ b/frontend/src/components/task-list/index.vue @@ -1,13 +1,10 @@