feat: Conformance Save leaved page done.

This commit is contained in:
chiayin
2023-12-04 14:11:29 +08:00
parent 8b502e67f4
commit 8ae4082a47
6 changed files with 44 additions and 28 deletions

View File

@@ -74,6 +74,7 @@
import { storeToRefs } from 'pinia';
import filesStore from '@/stores/files.js';
import AllMapDataStore from '@/stores/allMapData.js';
import LoadingStore from '@/stores/loading.js';
import IconDataFormat from '@/components/icons/IconDataFormat.vue';
import IconRule from '@/components/icons/IconRule.vue';
import IconsFilter from '@/components/icons/IconsFilter.vue';
@@ -91,9 +92,11 @@
setup() {
const store = filesStore();
const allMapDataStore = AllMapDataStore();
const loadingStore = LoadingStore();
const { createFilterId, baseLogId } = storeToRefs(allMapDataStore);
const { isLoading } = storeToRefs(loadingStore);
return { store, allMapDataStore, createFilterId, baseLogId }
return { store, allMapDataStore, createFilterId, baseLogId, isLoading }
},
components: {
IconDataFormat,
@@ -170,10 +173,12 @@
}
},
mounted() {
this.isLoading = true;
this.store.fetchEventLog();
this.store.fetchFilter();
this.store.fetchConformanceLog();
this.store.fetchConformanceFilter();
this.isLoading = false;
}
}
</script>