feat: Conformance Save Log Done.

This commit is contained in:
chiayin
2023-11-29 16:47:25 +08:00
parent f1666a0bd1
commit 1f0a6aa900
14 changed files with 628 additions and 71 deletions

View File

@@ -148,15 +148,23 @@ export default {
}
},
async mounted() {
if(this.$route.params.type === 'log') this.logId = this.$route.params.fileId;
switch (this.$route.params.type) {
let params = this.$route.params;
switch (params.type) {
case 'log':
this.logId = this.$route.params.fileId;
this.logId = params.fileId;
break;
case 'filter':
this.createFilterId = this.$route.params.fileId;
break;
default:
this.createFilterId = params.fileId;
break;
case 'rule':
switch (params.checkType) {
case 'log':
this.logId = params.checkFileId;
break;
case 'filter':
this.createFilterId = params.checkFileId;
}
break;
}
await this.allMapDataStore.getAllMapData();