feat: Conformance Save switchNavItem done.

This commit is contained in:
chiayin
2023-11-30 12:19:46 +08:00
parent 95c429ef00
commit c26a1dfee7
4 changed files with 48 additions and 21 deletions

View File

@@ -608,7 +608,7 @@ export default {
break;
}
}
}, 200);
}, 300);
}
}
},

View File

@@ -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() {