feat: Conformance Save Filter Done.
This commit is contained in:
@@ -55,7 +55,7 @@ export default defineStore('filesStore', {
|
||||
...state.allEventLog,
|
||||
...state.allFilter,
|
||||
...state.allConformanceLog,
|
||||
...state.allConformanceFilter
|
||||
...state.allConformanceFilter,
|
||||
];
|
||||
let data = state.switchFilesTagData;
|
||||
let filesTag = state.filesTag;
|
||||
@@ -151,8 +151,8 @@ export default defineStore('filesStore', {
|
||||
try {
|
||||
const response = await axios.get(api);
|
||||
|
||||
this.allConformancefilter = response.data;
|
||||
this.allConformancefilter.map(o => {
|
||||
this.allConformanceFilter = response.data;
|
||||
this.allConformanceFilter.map(o => {
|
||||
o.icon = 'local_police';
|
||||
o.parentLog = o.filter.name;
|
||||
o.fileType = "Rule";
|
||||
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
this.conformanceFilterCreateCheckId = params.checkId;
|
||||
// 為複寫 Modal 取得 fileName
|
||||
await this.filesStore.fetchConformanceFilter();
|
||||
await this.allConformanceFilter.forEach(file => this.conformanceFileName = file.id == this.conformanceLogCreateCheckId ? file.name : null);
|
||||
await this.allConformanceFilter.forEach(file => this.conformanceFileName = file.id == this.conformanceFilterCreateCheckId ? file.name : null);
|
||||
}
|
||||
await this.conformanceStore.getConformanceReport();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user