refactor: Conformance Router - FILES page to Confomance page router done.
This commit is contained in:
@@ -226,6 +226,8 @@
|
||||
import IconGrid from '@/components/icons/IconGrid.vue';
|
||||
import { renameModal, deleteFileModal } from '@/module/alertModal.js';
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -366,7 +368,6 @@
|
||||
type = 'log';
|
||||
params = { type: type, fileId: fileId };
|
||||
this.$router.push({name: 'Map', params: params});
|
||||
// this.$router.push({name: 'Map', params: params, query: params});
|
||||
break;
|
||||
case 'filter':
|
||||
this.createFilterId = file.id;
|
||||
@@ -375,19 +376,31 @@
|
||||
type = 'filter';
|
||||
params = { type: type, fileId: fileId };
|
||||
this.$router.push({name: 'Map', params: params});
|
||||
// this.$router.push({name: 'Map', params: params, query: params});
|
||||
break;
|
||||
// 先不考慮 MAP 只做 CONFORMANCE
|
||||
// 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: "/:type/:checkType/:checkId/conformance/:checkFileId"
|
||||
// path: "/discover/conformance/rule/:fileId"
|
||||
fileId = file.id;
|
||||
type = 'rule';
|
||||
params = { type: type, checkType: 'log', checkId: file.id, checkFileId: file.parent.id };
|
||||
this.$router.push({name: 'CheckConformance', params: params});
|
||||
params = { type: type, fileId: fileId };
|
||||
this.$router.push({name: 'Conformance', params: params});
|
||||
break
|
||||
case 'filter-check':
|
||||
fileId = file.id;
|
||||
type = 'rule';
|
||||
params = { type: type, checkType: 'filter', checkId: file.id, checkFileId: file.parent.id };
|
||||
this.$router.push({name: 'CheckConformance', params: params});
|
||||
params = { type: type, fileId: fileId };
|
||||
this.$router.push({name: 'Conformance', params: params});
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user