This commit is contained in:
Florinda
2024-10-31 09:22:47 +01:00
parent 6f75693b31
commit 443b2302f4
3 changed files with 56 additions and 23 deletions

View File

@@ -22,15 +22,23 @@
:paginatorTemplate="paginatorTemplate"
:totalRecords="scenario_execution_store.scenariosExecution.length"
:first="first"
@page="onPage"
@page="onPage"
:filters="filters"
>
<Column field="id" header="Execution ID" />
<Column field="scenario.name" header="Name" />
<Column field="" header="Execution Date" />
<Column field="id" header="Execution ID" filter filterPlaceholder="Search by ID" />
<Column field="scenario.name" header="Scenario Name" />
<Column field="execSharedMap.user_input.selected_project" header="Project Input" />
<Column field="execSharedMap.user_input.selected_application" header="Application Input" />
<Column field="scenario.id" header="Scenario ID" />
<Column field="" header="Start Date" />
<Column field="" header="End Date" />
<Column field="" header="Model AI" />
<Column field="" header="Version" />
<Column header="Output Type">
<template #body="slotProps">
{{ slotProps.data.scenario.outputType || 'text' }}
</template>
</Column>
<Column field="" header="Rating" />
<Column field="id">
<template #body="slotProps">
<Button label="View" @click="goToScenarioExec(slotProps.data)" class="mt-9 ml-4" />
@@ -89,6 +97,14 @@ function onPage(event) {
first.value = event.first;
}
const filters = ref({
id: { value: null, matchMode: 'contains' },
//scenario: { value: null, matchMode: 'contains' },
//'execSharedMap.user_input.selected_project': { value: null, matchMode: 'contains' },
//'execSharedMap.user_input.selected_application': { value: null, matchMode: 'contains' },
// Aggiungi altri filtri come preferisci
});
</script>