Map Attributes: type 'boolean' layout done.

This commit is contained in:
chiayin
2023-10-23 13:31:33 +08:00
parent 6c032ca94a
commit e55cbc013c
4 changed files with 156 additions and 9 deletions

View File

@@ -26,6 +26,7 @@ export default defineStore('allMapDataStore', {
allFilterEndToStart: [],
allFilterTimeframe: {},
allFilterTrace: [],
allFilterAttrs: [],
hasResultRule: null, // click Apply 後檢查是否有 Data
temporaryData: [], // 沒被 apply all 的 Data
postRuleData: [], // has-result API & temp-filters API 的 Data
@@ -93,6 +94,9 @@ export default defineStore('allMapDataStore', {
filterTrace: state => {
return state.allFilterTrace;
},
filterAttrs: state => {
return state.allFilterAttrs;
},
allFunnels: state => {
return state.allFunnelData;
},
@@ -217,6 +221,7 @@ export default defineStore('allMapDataStore', {
this.allFilterEndToStart = response.data.sinks;
this.allFilterTimeframe = response.data.timeframe;
this.allFilterTrace = response.data.trace;
this.allFilterAttrs = response.data.attrs;
} catch(error) {
apiError(error, 'Failed to load the Filter Parameters.');
};