feat: Conformance Save Logout done.
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
<template>
|
||||
<!-- conformanceLogId: {{ conformanceLogId }} <br>
|
||||
conformanceFilterId: {{ conformanceFilterId }} <br>
|
||||
conformanceLogTempCheckId: {{ conformanceLogTempCheckId }} <br>
|
||||
conformanceFilterTempCheckId: {{ conformanceFilterTempCheckId }} <br>
|
||||
conformanceLogCreateCheckId: {{ conformanceLogCreateCheckId }} <br>
|
||||
conformanceFilterCreateCheckId: {{ conformanceFilterCreateCheckId }} <br> -->
|
||||
<main class="h-screen-main relative">
|
||||
<div class="h-full relative bg-neutral-50">
|
||||
<ConformanceSidebar></ConformanceSidebar>
|
||||
@@ -57,14 +51,18 @@ export default {
|
||||
this.conformanceLogCreateCheckId = params.checkId;
|
||||
// 為複寫 Modal 取得 fileName
|
||||
await this.filesStore.fetchConformanceLog();
|
||||
await this.allConformanceLog.forEach(file => this.conformanceFileName = file.id == this.conformanceLogCreateCheckId ? file.name : null);
|
||||
await this.allConformanceLog.forEach(file => {
|
||||
if(file.id == this.conformanceLogCreateCheckId) return this.conformanceFileName = file.name;
|
||||
});
|
||||
break;
|
||||
case 'filter':
|
||||
this.conformanceFilterId = params.checkFileId;
|
||||
this.conformanceFilterCreateCheckId = params.checkId;
|
||||
// 為複寫 Modal 取得 fileName
|
||||
await this.filesStore.fetchConformanceFilter();
|
||||
await this.allConformanceFilter.forEach(file => this.conformanceFileName = file.id == this.conformanceFilterCreateCheckId ? file.name : null);
|
||||
await this.allConformanceFilter.forEach(file => {
|
||||
if(file.id == this.conformanceFilterCreateCheckId) return this.conformanceFileName = file.name;
|
||||
});
|
||||
}
|
||||
await this.conformanceStore.getConformanceReport();
|
||||
break;
|
||||
|
||||
@@ -67,9 +67,9 @@ export default {
|
||||
const loadingStore = LoadingStore();
|
||||
const allMapDataStore = AllMapDataStore();
|
||||
const { isLoading } = storeToRefs(loadingStore);
|
||||
const { processMap, bpmn, stats, insights, traceId, traces, baseTraces, baseTraceId, filterTasks, filterStartToEnd, filterEndToStart, filterTimeframe, filterTrace, temporaryData, isRuleData, ruleData, logId, baseLogId, createFilterId, cases } = storeToRefs(allMapDataStore);
|
||||
const { processMap, bpmn, stats, insights, traceId, traces, baseTraces, baseTraceId, filterTasks, filterStartToEnd, filterEndToStart, filterTimeframe, filterTrace, temporaryData, isRuleData, ruleData, logId, baseLogId, createFilterId, cases, postRuleData } = storeToRefs(allMapDataStore);
|
||||
|
||||
return { isLoading, processMap, bpmn, stats, insights, traceId, traces, baseTraces, baseTraceId, filterTasks, filterStartToEnd, filterEndToStart, filterTimeframe, filterTrace, logId, baseLogId, createFilterId, temporaryData, isRuleData, ruleData, allMapDataStore, cases }
|
||||
return { isLoading, processMap, bpmn, stats, insights, traceId, traces, baseTraces, baseTraceId, filterTasks, filterStartToEnd, filterEndToStart, filterTimeframe, filterTrace, logId, baseLogId, createFilterId, temporaryData, isRuleData, ruleData, allMapDataStore, cases, postRuleData }
|
||||
},
|
||||
props:['type', 'checkType', 'checkId', 'checkFileId'], // 來自 router 的 props
|
||||
components: {
|
||||
@@ -387,5 +387,13 @@ export default {
|
||||
this.sidebarState = boolean;
|
||||
});
|
||||
},
|
||||
beforeUnmount() {
|
||||
this.logId = null;
|
||||
this.createFilterId = null;
|
||||
this.tempFilterId = null;
|
||||
this.temporaryData = [];
|
||||
this.postRuleData = [];
|
||||
this.ruleData = [];
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user