feat: Conformance Save switchNavItem done.
This commit is contained in:
@@ -114,16 +114,21 @@ export default {
|
||||
let type;
|
||||
let fileId;
|
||||
|
||||
if(this.navViewName === 'FILES') {
|
||||
this.store.filesTag = event.target.innerText;
|
||||
} else if(this.navViewName === 'DISCOVER') {
|
||||
type = this.$route.params.type;
|
||||
fileId = this.$route.params.fileId;
|
||||
if(event.target.innerText === 'MAP') {
|
||||
this.$router.push({name: 'Map', params: { type: type, fileId: fileId }})
|
||||
} else if(event.target.innerText === 'CONFORMANCE') {
|
||||
this.$router.push({name: 'Conformance', params: { type: type, fileId: fileId }})
|
||||
}
|
||||
switch (this.navViewName) {
|
||||
case 'FILES':
|
||||
this.store.filesTag = event.target.innerText;
|
||||
break;
|
||||
case 'DISCOVER':
|
||||
type = this.$route.params.type;
|
||||
fileId = this.$route.params.fileId;
|
||||
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;
|
||||
}
|
||||
},
|
||||
getNavViewName() {
|
||||
|
||||
Reference in New Issue
Block a user