history exec scenario page
This commit is contained in:
@@ -5,30 +5,15 @@
|
||||
<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>
|
||||
</div>
|
||||
<div class="flex mt-6">
|
||||
<div class="card flex flex-col gap-4 w-full">
|
||||
<div class="input-container flex items-center" v-if="!data_loaded">
|
||||
<div class="flex-grow">
|
||||
<label ><h2>Execution Id</h2></label>
|
||||
<div class="input-wrapper">
|
||||
<InputText v-model="execution_id" class="full-width-input" />
|
||||
</div>
|
||||
</div>
|
||||
<Button label="Find" @click="retrieveScenarioExec" class="mt-9 ml-4" />
|
||||
</div>
|
||||
<h1>
|
||||
{{ scenario.name }}
|
||||
</h1>
|
||||
</div>
|
||||
</Button> -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div v-if="loading_data" class="flex justify-center">
|
||||
@@ -75,16 +60,14 @@
|
||||
<script setup>
|
||||
|
||||
import ChangeImpactOutputViewer from '@/components/ChangeImpactOutputViewer.vue';
|
||||
import { MdPreview } from 'md-editor-v3';
|
||||
import { ChevronLeftIcon } from '@heroicons/vue/24/solid';
|
||||
import axios from 'axios';
|
||||
import JsonEditorVue from 'json-editor-vue';
|
||||
import { MdPreview } from 'md-editor-v3';
|
||||
import 'md-editor-v3/lib/style.css';
|
||||
import InputText from 'primevue/inputtext';
|
||||
import ProgressSpinner from 'primevue/progressspinner';
|
||||
import { ref } from 'vue';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
|
||||
import { ScenarioExecutionStore } from '../../stores/ScenarioExecutionStore.js';
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
@@ -98,10 +81,17 @@ const formData = ref({});
|
||||
const exec_id = ref(null);
|
||||
const exec_scenario = ref({});
|
||||
const debug_modal = ref(false);
|
||||
const execution_id = ref("");
|
||||
const scenario_execution_store = ScenarioExecutionStore();
|
||||
const execution_id = scenario_execution_store.getSelectedExecScenario;
|
||||
|
||||
const retrieveScenarioExec = () => {
|
||||
const id = execution_id.value
|
||||
|
||||
onMounted(() => {
|
||||
console.log("scenario id: ", execution_id.id);
|
||||
retrieveScenarioExec(execution_id.id)
|
||||
});
|
||||
|
||||
const retrieveScenarioExec = (id) => {
|
||||
//const id = execution_id.value.id;
|
||||
loading.value = true
|
||||
|
||||
axios.get('/execution?id=' + id )
|
||||
|
||||
Reference in New Issue
Block a user