feat: Conformance Save Log Done.
This commit is contained in:
@@ -154,7 +154,17 @@
|
||||
this.$router.push({name: 'Map', params: params});
|
||||
// this.$router.push({name: 'Map', params: params, query: params});
|
||||
break;
|
||||
default:
|
||||
// 先不考慮 MAP 只做 CONFORMANCE
|
||||
case 'Rule':
|
||||
// path: "/:type/:checkType/:checkId/conformance/:checkFileId"
|
||||
type = 'rule';
|
||||
if(file.log){
|
||||
params = { type: type, checkType: 'log', checkId: file.id, checkFileId: file.log.id };
|
||||
this.$router.push({name: 'CheckConformance', params: params});
|
||||
} else if(file.filter) {
|
||||
params = { type: type, checkType: 'filter', checkId: file.id, checkFileId: file.filter.id };
|
||||
this.$router.push({name: 'CheckConformance', params: params});
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -162,6 +172,8 @@
|
||||
mounted() {
|
||||
this.store.fetchEventLog();
|
||||
this.store.fetchFilter();
|
||||
this.store.fetchConformanceLog();
|
||||
this.store.fetchConformanceFilter();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user