add Scenario outputType
This commit is contained in:
@@ -50,10 +50,11 @@
|
||||
</template>
|
||||
|
||||
<div class="card flex flex-col gap-4 w-full">
|
||||
<div v-if="scenario_output != null">
|
||||
<!--<MdPreview class="editor" v-model="scenario_output" language="en-US" />-->
|
||||
<ChangeImpactOutputViewer :scenario_output="scenario_output" />
|
||||
|
||||
<div v-if="scenario.outputType == 'ciaOutput'">
|
||||
<ChangeImpactOutputViewer :scenario_output="scenario_output" />
|
||||
</div>
|
||||
<div v-else>
|
||||
<MdPreview class="editor" v-model="scenario_output" language="en-US" />
|
||||
</div>
|
||||
</div>
|
||||
</Panel>
|
||||
@@ -74,6 +75,7 @@
|
||||
<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';
|
||||
@@ -95,9 +97,8 @@ const loading_data = ref(false);
|
||||
const formData = ref({});
|
||||
const exec_id = ref(null);
|
||||
const exec_scenario = ref({});
|
||||
const debug_modal = ref(false)
|
||||
const execution_id=ref("");
|
||||
|
||||
const debug_modal = ref(false);
|
||||
const execution_id = ref("");
|
||||
|
||||
const retrieveScenarioExec = () => {
|
||||
const id = execution_id.value
|
||||
@@ -110,7 +111,7 @@ const retrieveScenarioExec = () => {
|
||||
exec_scenario.value = response.data
|
||||
data_loaded.value = true;
|
||||
scenario_output.value = response.data.execSharedMap.scenario_output;
|
||||
exec_id.value = response.data.scenarioExecution_id
|
||||
exec_id.value = response.data.scenarioExecution_id
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user