mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 01:23:48 +00:00
modified display of rows to show data based on colum isVisble prop
This commit is contained in:
parent
650038f069
commit
0ae9c8f969
@ -15,7 +15,7 @@ limitations under the License. -->
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div @click="showSelectSpan" class="log-item">
|
<div @click="showSelectSpan" class="log-item">
|
||||||
<div v-for="(item, index) in columns" :key="index" :class="item.label">
|
<div v-for="(item, index) in visibleColumns" :key="index" :class="item.label">
|
||||||
<span v-if="item.label === 'timestamp'">
|
<span v-if="item.label === 'timestamp'">
|
||||||
{{ dateFormat(data.timestamp) }}
|
{{ dateFormat(data.timestamp) }}
|
||||||
</span>
|
</span>
|
||||||
@ -43,6 +43,7 @@ const props = defineProps({
|
|||||||
});
|
});
|
||||||
const emit = defineEmits(["select"]);
|
const emit = defineEmits(["select"]);
|
||||||
const columns = ServiceLogConstants;
|
const columns = ServiceLogConstants;
|
||||||
|
const visibleColumns = computed(() => columns.filter(column => column.isVisible))
|
||||||
const tags = computed(() => {
|
const tags = computed(() => {
|
||||||
if (!props.data.tags) {
|
if (!props.data.tags) {
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
Reference in New Issue
Block a user