refactor: Discover Router done.

This commit is contained in:
chiayin
2024-03-19 15:57:12 +08:00
parent bc3e20abd0
commit 6663b48159
10 changed files with 236 additions and 154 deletions

View File

@@ -365,7 +365,7 @@
this.createFilterId = null;
this.baseLogId = file.id;
fileId = file.id;
type = 'log';
type = file.type;
params = { type: type, fileId: fileId };
this.$router.push({name: 'Map', params: params});
break;
@@ -373,34 +373,21 @@
this.createFilterId = file.id;
this.baseLogId = file.parent.id;
fileId = file.id;
type = 'filter';
type = file.type;
params = { type: type, fileId: fileId };
this.$router.push({name: 'Map', params: params});
break;
// case 'log-check':
// // path: "/:type/:checkType/:checkId/conformance/:checkFileId"
// type = 'rule';
// params = { type: type, checkType: 'log', checkId: file.id, checkFileId: file.parent.id };
// this.$router.push({name: 'CheckConformance', params: params});
// break
// case 'filter-check':
// type = 'rule';
// params = { type: type, checkType: 'filter', checkId: file.id, checkFileId: file.parent.id };
// this.$router.push({name: 'CheckConformance', params: params});
// break;
// conformanceLogId, conformanceFilterId, conformanceType
case 'log-check':
// path: "/discover/conformance/rule/:fileId"
fileId = file.id;
type = 'rule';
type = file.parent.type;
params = { type: type, fileId: fileId };
this.$router.push({name: 'Conformance', params: params});
this.$router.push({name: 'CheckConformance', params: params});
break
case 'filter-check':
fileId = file.id;
type = 'rule';
type = file.parent.type;
params = { type: type, fileId: fileId };
this.$router.push({name: 'Conformance', params: params});
this.$router.push({name: 'CheckConformance', params: params});
break;
}
},