Issues #182: done.
This commit is contained in:
@@ -455,7 +455,7 @@ export default {
|
|||||||
type = "Attributes";
|
type = "Attributes";
|
||||||
break;
|
break;
|
||||||
case 'boolean-attr':
|
case 'boolean-attr':
|
||||||
label = `${includeStr}, ${e.key}, ${this.selectAttribute.label}`;
|
label = `${includeStr}, ${e.key}, ${this.selectAttribute?.label}`;
|
||||||
type = "Attributes";
|
type = "Attributes";
|
||||||
break;
|
break;
|
||||||
case 'int-attr':
|
case 'int-attr':
|
||||||
|
|||||||
@@ -230,7 +230,6 @@ export default {
|
|||||||
// 因 trace api 連動,所以關閉側邊欄時讓數值歸 traces 第一筆 id
|
// 因 trace api 連動,所以關閉側邊欄時讓數值歸 traces 第一筆 id
|
||||||
this.showTraceId = await this.traces[0]?.id;
|
this.showTraceId = await this.traces[0]?.id;
|
||||||
this.infiniteStart = await 0;
|
this.infiniteStart = await 0;
|
||||||
await this.allMapDataStore.getTraceDetail();
|
|
||||||
this.setNodesData();
|
this.setNodesData();
|
||||||
this.setEdgesData();
|
this.setEdgesData();
|
||||||
this.createCy();
|
this.createCy();
|
||||||
@@ -261,9 +260,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
|
||||||
this.allMapDataStore.getTraceDetail();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export default defineStore('allMapDataStore', {
|
|||||||
state: () => ({
|
state: () => ({
|
||||||
baseLogId: null,
|
baseLogId: null,
|
||||||
logId: null,
|
logId: null,
|
||||||
traceId: 1,
|
traceId: null,
|
||||||
baseTraceId: 1,
|
baseTraceId: 1,
|
||||||
tempFilterId: null,
|
tempFilterId: null,
|
||||||
createFilterId: null,
|
createFilterId: null,
|
||||||
@@ -223,7 +223,7 @@ export default defineStore('allMapDataStore', {
|
|||||||
return this.allBaseCase;
|
return this.allBaseCase;
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
if(error.response.status === 404) return this.infinite404 = 404;
|
if(error.response.status === 404) return this.infinite404 = 404;
|
||||||
apiError(error, 'Failed to load the Trace Detail.');
|
apiError(error, 'Failed to load the Base Trace Detail.');
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -299,7 +299,6 @@ export default {
|
|||||||
// 先 loading 再執行以下程式
|
// 先 loading 再執行以下程式
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
// Log 檔前往 Map Log 頁, Filter 檔前往 Map Filter 頁
|
// Log 檔前往 Map Log 頁, Filter 檔前往 Map Filter 頁
|
||||||
this.baseLogId = this.$route.params.fileId;
|
|
||||||
if(this.$route.params.type === 'log'){
|
if(this.$route.params.type === 'log'){
|
||||||
this.logId = this.$route.params.fileId;
|
this.logId = this.$route.params.fileId;
|
||||||
}else if(this.$route.params.type === 'filter') {
|
}else if(this.$route.params.type === 'filter') {
|
||||||
@@ -317,6 +316,7 @@ export default {
|
|||||||
this.baseTraceId = await this.baseTraces[0]?.id;
|
this.baseTraceId = await this.baseTraces[0]?.id;
|
||||||
this.createCy(this.mapType);
|
this.createCy(this.mapType);
|
||||||
await this.allMapDataStore.getFilterParams();
|
await this.allMapDataStore.getFilterParams();
|
||||||
|
await this.allMapDataStore.getTraceDetail();
|
||||||
|
|
||||||
// 執行完後才取消 loading
|
// 執行完後才取消 loading
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
|
|||||||
@@ -148,6 +148,7 @@
|
|||||||
case 'Filter':
|
case 'Filter':
|
||||||
this.createFilterId = file.id;
|
this.createFilterId = file.id;
|
||||||
this.baseLogId = file.log.id;
|
this.baseLogId = file.log.id;
|
||||||
|
console.log('files filter:', this.baseLogId);
|
||||||
fileId = file.id;
|
fileId = file.id;
|
||||||
type = 'filter';
|
type = 'filter';
|
||||||
params = { type: type, fileId: fileId };
|
params = { type: type, fileId: fileId };
|
||||||
|
|||||||
Reference in New Issue
Block a user