diff --git a/src/service/ScenarioService.js b/src/service/ScenarioService.js index 24eba36..0a6316a 100644 --- a/src/service/ScenarioService.js +++ b/src/service/ScenarioService.js @@ -20,6 +20,12 @@ export const ScenarioService = { getExecScenariosByUser() { return axios.get('/scenariosByUser') + }, + getScenariosForRE(){ + return axios.get('/getScenariosForRE') + }, + updateScenarioExecRating(data) { + return axios.post('/updateRating', data) } } \ No newline at end of file diff --git a/src/views/pages/ScenarioExecList.vue b/src/views/pages/ScenarioExecList.vue index aa8c84f..af10296 100644 --- a/src/views/pages/ScenarioExecList.vue +++ b/src/views/pages/ScenarioExecList.vue @@ -23,7 +23,8 @@ paginator :paginatorTemplate="paginatorTemplate" :totalRecords="scenario_execution_store.scenariosExecution.length" - :first="first" + :first="first" + filterDisplay="menu" @page="onPage" :globalFilterFields="['id', 'scenario.name', 'execSharedMap.user_input.selected_project', 'execSharedMap.user_input.selected_application']"> @@ -37,41 +38,131 @@ - - - + + + - {{ slotProps.data.scenario.name }} + {{ slotProps.data.scenario?.name }} - - - - - - - {{ moment(slotProps.data.startDate).format('DD-MM-YYYY HH:mm:ss') }} - - - - - {{ moment(slotProps.data.endDate).format('DD-MM-YYYY HH:mm:ss') }} - - - - - - - - {{ slotProps.data.scenario.outputType || 'text' }} - - + + + + + + + + + {{ slotProps.data.execSharedMap?.user_input?.selected_project }} + + + + + + + + + + {{ slotProps.data.execSharedMap?.user_input?.selected_application }} + + + + + + + + + + {{ moment(slotProps.data.startDate).format('DD-MM-YYYY HH:mm:ss') }} + + + + { + filterModel.value = new Date(value); // Converte in oggetto Date + filterCallback(); + }" + dateFormat="yy-mm-dd" + placeholder="Filter by Date" + /> + + + + + + {{ moment(slotProps.data.endDate).format('DD-MM-YYYY HH:mm:ss') }} + + + + + + + + + + {{ slotProps.data.scenario?.aiModel?.apiProvider }} + + + + + + + + + + {{ slotProps.data.scenario?.aiModel?.model || 'N/A' }} + + + + + + + + + + {{ slotProps.data.usedTokens || 'N/A' }} + + + + + + + + + + {{ slotProps.data.scenario?.outputType || 'text' }} + + + + + + - + @@ -97,13 +188,15 @@