feat: Performance router done.
This commit is contained in:
5
src/components/Discover/Performance/ProformanceView.vue
Normal file
5
src/components/Discover/Performance/ProformanceView.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>ProformanceView</h2>
|
||||
</div>
|
||||
</template>
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
// FILES: ['ALL', 'DISCOVER', 'COMPARE', 'DESIGN'],
|
||||
FILES: ['ALL', 'DISCOVER'],
|
||||
// DISCOVER: ['MAP', 'CONFORMANCE', 'PERFORMANCE', 'DATA']
|
||||
DISCOVER: ['MAP', 'CONFORMANCE']
|
||||
DISCOVER: ['MAP', 'CONFORMANCE', 'PERFORMANCE']
|
||||
},
|
||||
navViewName: 'FILES',
|
||||
isActive: null,
|
||||
@@ -136,13 +136,27 @@ export default {
|
||||
case 'DISCOVER':
|
||||
type = this.$route.params.type;
|
||||
fileId = this.$route.params.fileId;
|
||||
if(event.target.innerText === 'MAP') {
|
||||
|
||||
switch (event.target.innerText) {
|
||||
case 'MAP':
|
||||
if(type === 'rule') this.$router.push({name: 'CheckMap'});
|
||||
else this.$router.push({name: 'Map', params: { type: type, fileId: fileId }});
|
||||
} else if(event.target.innerText === 'CONFORMANCE') {
|
||||
break;
|
||||
case 'CONFORMANCE':
|
||||
if(type === 'rule') this.$router.push({name: 'CheckConformance'});
|
||||
else this.$router.push({name: 'Conformance', params: { type: type, fileId: fileId }});
|
||||
break
|
||||
case 'PERFORMANCE':
|
||||
this.$router.push({name: 'Performance'});
|
||||
break;
|
||||
}
|
||||
// if(event.target.innerText === 'MAP') {
|
||||
// if(type === 'rule') this.$router.push({name: 'CheckMap'});
|
||||
// else this.$router.push({name: 'Map', params: { type: type, fileId: fileId }});
|
||||
// } else if(event.target.innerText === 'CONFORMANCE') {
|
||||
// if(type === 'rule') this.$router.push({name: 'CheckConformance'});
|
||||
// else this.$router.push({name: 'Conformance', params: { type: type, fileId: fileId }});
|
||||
// }
|
||||
break;
|
||||
}
|
||||
},
|
||||
@@ -158,11 +172,14 @@ export default {
|
||||
switch (name) {
|
||||
case 'Map':
|
||||
case 'CheckMap':
|
||||
this.isActive = 'MAP'
|
||||
this.isActive = 'MAP';
|
||||
break;
|
||||
case 'Conformance':
|
||||
case 'CheckConformance':
|
||||
this.isActive = 'CONFORMANCE'
|
||||
this.isActive = 'CONFORMANCE';
|
||||
break;
|
||||
case 'Performanc':
|
||||
this.isActive = 'PERFORMANCE';
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -6,6 +6,7 @@ import Files from '@/views/Files/index.vue';
|
||||
import Upload from '@/views/Upload/index.vue';
|
||||
import Map from '@/views/Discover/Map/index.vue';
|
||||
import Conformance from '@/views/Discover/Conformance/index.vue';
|
||||
import Performance from '@/views/Discover/Performance/index.vue';
|
||||
import MemberArea from '@/views/MemberArea/index.vue';
|
||||
import NotFound404 from '@/views/NotFound404.vue';
|
||||
|
||||
@@ -78,6 +79,11 @@ const routes = [
|
||||
component: Conformance,
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: "/discover/performance/:type/:fileId",
|
||||
name: "Performance",
|
||||
component: Performance,
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
5
src/views/Discover/Performance/index.vue
Normal file
5
src/views/Discover/Performance/index.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>ProformanceIndex</h2>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user