Discover: sidebar insight done

This commit is contained in:
chiayin
2023-03-14 17:02:09 +08:00
parent 159e2b29f4
commit 807218141e
8 changed files with 656 additions and 303 deletions

View File

@@ -14,6 +14,8 @@ export default defineStore('allMapDataStore', {
logId: null,
allProcessMap: {},
allBpmn: {},
allStats: {},
allInsights: {},
httpStatus: 200,
}),
getters: {
@@ -22,6 +24,12 @@ export default defineStore('allMapDataStore', {
},
bpmn: state => {
return state.allBpmn;
},
stats: state => {
return state.allStats;
},
insights: state => {
return state.allInsights;
}
},
actions: {
@@ -36,6 +44,8 @@ export default defineStore('allMapDataStore', {
const response = await this.$axios.get(api);
this.allProcessMap = response.data.process_map;
this.allBpmn = response.data.bpmn;
this.allStats = response.data.stats;
this.allInsights = response.data.insights;
if(this.httpStatus < 300) loading.isLoading = false;
} catch(error) {