mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
added a function to set visibility to false
This commit is contained in:
parent
f9d7dd61c4
commit
bcf15a6274
@ -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 };
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user