Conformance Filter: done.

This commit is contained in:
chiayin
2023-10-19 11:01:21 +08:00
parent 1fd019d276
commit b32e1b3b61
4 changed files with 29 additions and 21 deletions

View File

@@ -91,9 +91,9 @@ import getMoment from 'moment';
export default {
setup() {
const allMapDataStore = AllMapDataStore();
const { logId, stats } = storeToRefs(allMapDataStore);
const { logId, stats, createFilterId } = storeToRefs(allMapDataStore);
return { logId, stats, allMapDataStore };
return { logId, stats, createFilterId, allMapDataStore };
},
data() {
return {
@@ -149,6 +149,16 @@ export default {
},
async mounted() {
if(this.$route.params.type === 'log') this.logId = this.$route.params.fileId;
switch (this.$route.params.type) {
case 'log':
this.logId = this.$route.params.fileId;
break;
case 'filter':
this.createFilterId = this.$route.params.fileId;
break;
default:
break;
}
await this.allMapDataStore.getAllMapData();
await this.getStatData();
this.isPanel = false; // 預設不打開