feat: Compare Grid Sort done.

This commit is contained in:
chiayin
2024-02-19 17:26:18 +08:00
parent 66a6f7806d
commit 01b8a95485
3 changed files with 312 additions and 102 deletions

View File

@@ -81,9 +81,11 @@ export default {
navViewData:
{
// FILES: ['ALL', 'DISCOVER', 'COMPARE', 'DESIGN'],
FILES: ['ALL', 'DISCOVER'],
FILES: ['ALL', 'DISCOVER', 'COMPARE'],
// DISCOVER: ['MAP', 'CONFORMANCE', 'PERFORMANCE', 'DATA']
DISCOVER: ['MAP', 'CONFORMANCE', 'PERFORMANCE']
DISCOVER: ['MAP', 'CONFORMANCE', 'PERFORMANCE'],
// COMPARE: ['PROCESS MAP', 'DASHBOARD']
COMPARE: ['DASHBOARD']
},
navViewName: 'FILES',
isActive: null,
@@ -104,8 +106,8 @@ export default {
},
showIcon: function() {
let result = true;
if(this.navViewName === 'FILES') result = false;
else if(this.navViewName === 'UPLOAD') result = false;
result = ['FILES', 'UPLOAD'].includes(this.navViewName) ? false : true;
return result;
}
},
@@ -154,14 +156,9 @@ export default {
this.$router.push({name: 'Performance', params: { type: type, fileId: fileId }});
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;
case 'COMPARE':
break
}
},
getNavViewName() {