WIP: createAllPaths

This commit is contained in:
Cindy Chang
2024-08-19 16:19:12 +08:00
parent 27d11997bd
commit 2de9a2b3e6
4 changed files with 53 additions and 10 deletions

View File

@@ -241,16 +241,10 @@ import PageAdmin from '@/stores/pageAdmin';
import { getTimeLabel } from '@/module/timeLabel.js';
import getMoment from 'moment';
import i18next from '@/i18n/i18n';
import { INSIGHTS_FIELDS_AND_LABELS } from '@/constants/constants';
const fieldNamesAndLabelNames = [
['self_loops', 'Self-Loop'],
['short_loops', 'Short-Loop'],
['shortest_traces', 'Shortest Trace'],
['longest_traces', 'Longest Trace'],
['most_freq_traces', 'Most Frequent Trace'],
];
// 刪除第一個和第二個元素
fieldNamesAndLabelNames.splice(0, 2);
const fieldNamesAndLabelNames = [...INSIGHTS_FIELDS_AND_LABELS].splice(0, 2);
export default {
props:{
sidebarState: {
@@ -269,6 +263,7 @@ export default {
setup(){
const pageAdmin = PageAdmin();
const active1 = ref(0);
const currentMapFile = computed(() => pageAdmin.currentMapFile);
const selectedPath = ref(0);
@@ -282,6 +277,7 @@ export default {
fieldNamesAndLabelNames,
selectedPath,
onPathOptionClick,
active1,
};
},
data() {
@@ -291,7 +287,6 @@ export default {
valueTraces: 0,
valueTaskInstances: 0,
valueTasks: 0,
active1: 0,
}
},
methods: {