fixed Project application bug
This commit is contained in:
@@ -3,29 +3,30 @@
|
||||
<ProgressSpinner style="width: 50px; height: 50px; margin-top: 50px" strokeWidth="3" fill="transparent"/>
|
||||
</div>
|
||||
<div v-else>
|
||||
|
||||
<div class="flex items-center justify-between p-2">
|
||||
|
||||
<!-- <Button
|
||||
<!--
|
||||
<Button
|
||||
@click="back()"
|
||||
label="Load"
|
||||
class="flex items-center text-sm">
|
||||
<ChevronLeftIcon name="chevron-left" class="w-4 h-5 text-white"/>
|
||||
<span>Back to Scenarios</span>
|
||||
</Button> -->
|
||||
</Button>
|
||||
-->
|
||||
</div>
|
||||
<h2 class="text-xl font-bold mt-6">Executions List</h2>
|
||||
|
||||
<DataTable v-model:filters="filters" :value="scenario_execution_store.scenariosExecution"
|
||||
:loading="loading_data"
|
||||
class="mt-0"
|
||||
:rows="10"
|
||||
paginator
|
||||
:paginatorTemplate="paginatorTemplate"
|
||||
:totalRecords="scenario_execution_store.scenariosExecution.length"
|
||||
:first="first"
|
||||
@page="onPage" :globalFilterFields="['id', 'scenario.name', 'execSharedMap.user_input.selected_project', 'execSharedMap.user_input.selected_application']">
|
||||
:loading="loading_data"
|
||||
class="mt-0"
|
||||
:rows="10"
|
||||
paginator
|
||||
:paginatorTemplate="paginatorTemplate"
|
||||
:totalRecords="scenario_execution_store.scenariosExecution.length"
|
||||
:first="first"
|
||||
@page="onPage" :globalFilterFields="['id', 'scenario.name', 'execSharedMap.user_input.selected_project', 'execSharedMap.user_input.selected_application']">
|
||||
|
||||
<template #header>
|
||||
<template #header>
|
||||
<div class="flex justify-end">
|
||||
<IconField>
|
||||
<InputIcon>
|
||||
@@ -35,70 +36,54 @@
|
||||
</IconField>
|
||||
</div>
|
||||
</template>
|
||||
<Column field="id" header="Execution ID">
|
||||
<!-- <template #filter="{ filterModel, filterCallback }">
|
||||
<InputText v-model="filterModel.value" type="text" @input="filterCallback()" placeholder="Search by ID" />
|
||||
</template>-->
|
||||
</Column>
|
||||
|
||||
<Column field="id" header="Execution ID"></Column>
|
||||
<Column field="scenario.name" header="Scenario Name">
|
||||
<template #body="slotProps">
|
||||
<div class="flex items-center gap-2">
|
||||
{{ slotProps.data.scenario.name }}
|
||||
<i
|
||||
class="pi pi-info-circle text-blue-500 cursor-pointer"
|
||||
v-tooltip="slotProps.data.scenario.description"
|
||||
></i>
|
||||
<i
|
||||
class="pi pi-info-circle text-blue-500 cursor-pointer"
|
||||
v-tooltip="slotProps.data.scenario.description"
|
||||
></i>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</Column>
|
||||
<Column field="execSharedMap.user_input.selected_project" header="Project Input">
|
||||
|
||||
</Column>
|
||||
<Column field="execSharedMap.user_input.selected_application" header="Application Input">
|
||||
|
||||
</Column>
|
||||
<Column field="startDate" header="Start Date">
|
||||
|
||||
</Column>
|
||||
<Column field="endDate" header="End Date">
|
||||
|
||||
</Column>
|
||||
<Column field="scenario.aiModel.apiProvider" header="Model AI">
|
||||
|
||||
</Column>
|
||||
|
||||
<Column field="scenario.aiModel.model" header="Version">
|
||||
|
||||
</Column>
|
||||
<Column field="execSharedMap.user_input.selected_project" header="Project Input"></Column>
|
||||
<Column field="execSharedMap.user_input.selected_application" header="Application Input"></Column>
|
||||
<Column field="startDate" header="Start Date"></Column>
|
||||
<Column field="endDate" header="End Date"></Column>
|
||||
<Column field="scenario.aiModel.apiProvider" header="Model AI"></Column>
|
||||
<Column field="scenario.aiModel.model" header="Version"></Column>
|
||||
<Column header="Output Type">
|
||||
<template #body="slotProps">
|
||||
{{ slotProps.data.scenario.outputType || 'text' }}
|
||||
</template>
|
||||
|
||||
</Column>
|
||||
<Column field="rating" header="Rating">
|
||||
<template #body="slotProps">
|
||||
<Rating :value="slotProps.data.rating" :stars="5" readonly cancel="false" />
|
||||
</template>
|
||||
|
||||
</Column>
|
||||
<Column field="id">
|
||||
|
||||
<template #body="slotProps">
|
||||
<div class="flex justify-center items-center h-full">
|
||||
<Button label="View" @click="goToScenarioExec(slotProps.data)" class="mt-0 ml-0" />
|
||||
</div>
|
||||
</template>
|
||||
</Column>
|
||||
|
||||
<template #empty>
|
||||
<tr>
|
||||
<td :colspan="9" class="text-center">No executions found</td>
|
||||
</tr>
|
||||
</template>
|
||||
</DataTable>
|
||||
|
||||
</div>
|
||||
|
||||
<div v-if="loading_data" class="flex justify-center">
|
||||
<ProgressSpinner style="width: 30px; height: 30px; margin: 30px" strokeWidth="6" fill="transparent"/>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
Reference in New Issue
Block a user