Discover: sidebarFilter Funnel to be decided.

This commit is contained in:
chiayin
2023-04-17 13:38:28 +08:00
parent aa52c4bce1
commit 2d48c244a1
4 changed files with 119 additions and 21 deletions

View File

@@ -14,6 +14,7 @@ export default defineStore('allMapDataStore', {
state: () => ({
logId: null,
traceId: 1,
tempFilterId: null,
allProcessMap: {},
allBpmn: {},
allStats: {},
@@ -75,7 +76,11 @@ export default defineStore('allMapDataStore', {
*/
async getAllMapData() {
let logId = this.logId;
const api = `/api/logs/${logId}/discover`;
let tempFilterId = this.tempFilterId;
let api = tempFilterId !== null ? `/api/temp-filters/${tempFilterId}/discover` : `/api/logs/${logId}/discover`;
console.log(tempFilterId);
console.log(logId);
// const api = `/api/logs/${logId}/discover`;
try {
const response = await this.$axios.get(api);