RE Single class scenarios picklist

This commit is contained in:
Florinda
2024-12-17 11:25:08 +01:00
parent 064abb6d04
commit 204f3aa994
5 changed files with 129 additions and 11 deletions

View File

@@ -40,10 +40,11 @@
import FileFlowViewer from '@/components/FileFlowViewer.vue';
import { ApplicationCodeService } from '@/service/ApplicationCodeService';
import { LoadingStore } from '@/stores/LoadingStore.js';
import { ScenarioStore } from '@/stores/ScenarioStore.js';
import { UserPrefStore } from '@/stores/UserPrefStore.js';
import Tree from 'primevue/tree';
import { onMounted, ref, watch } from 'vue';
import { useRouter } from 'vue-router';
import { UserPrefStore } from '@/stores/UserPrefStore.js';
const nodes = ref(null)
const expandedKeys = ref({});
@@ -51,10 +52,13 @@ const selectedFile = ref({})
const router = useRouter();
const userPrefStore = UserPrefStore();
const loadingStore = LoadingStore()
const scenario_store = ScenarioStore();
onMounted(() => {
console.log("Mounted")
fetchApplicationData();
scenario_store.fetchScenariosForRE();
})
function fetchApplicationData() {
@@ -88,6 +92,8 @@ function onNodeSelect(e){
if(e.icon == "pi pi-fw pi-file"){
selectedFile.value = e.key
}
userPrefStore.setSelectedFile(e.label)
console.log("user pref store file", userPrefStore.getSelFile)
console.log(e)
};