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