diff --git a/src/store/modules/log.ts b/src/store/modules/log.ts index c63a5445..ef7aca80 100644 --- a/src/store/modules/log.ts +++ b/src/store/modules/log.ts @@ -1,3 +1,4 @@ +import { serviceLogColumn } from '@/types/log-column'; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -61,6 +62,15 @@ export const logStore = defineStore({ loadLogs: false, }), actions: { + hideColumns(columnsLabel: string[]) { + console.log(columnsLabel, this.serviceLogColumn) + // TODO: add a parameter column type too + this.serviceLogColumn.map((col: any) => { + if (columnsLabel.includes(col.label)) { + col.isVisible = false + } + }) + }, setLogCondition(data: any) { this.conditions = { ...this.conditions, ...data }; },