fix: se agrega como para seleccion de organizaciones para filtrar los procesos por organizacion y ejecutar los procesos por el filtro de organizacion establecido.

This commit is contained in:
2026-02-03 16:41:06 -07:00
parent f9ece2923f
commit b29c586524
2 changed files with 80 additions and 4 deletions

View File

@@ -39,6 +39,7 @@ export async function fetchTasks(
}
});
console.log('Params:', params.toString());
const res = await fetchWithAuth(`${API_URL}/tasks/tasks/?${params.toString()}`);
if (!res.ok) {
@@ -61,6 +62,7 @@ export interface ComandoResponse {
// Interfaz para los parámetros de ejecución
export interface EjecutarComandoParams {
procesamiento?: string;
organizacionid?: string;
todos?: boolean;
}
@@ -78,6 +80,10 @@ export async function ejecutarComando(
if (params.procesamiento !== undefined) {
requestData.procesamiento = params.procesamiento;
}
if (params.organizacionid !== undefined) {
requestData.organizacionid = params.organizacionid;
}
if (params.todos !== undefined) {
requestData.todos = params.todos;