mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 01:33:54 +00:00
added select input to header
This commit is contained in:
parent
e9cfd22096
commit
fbeca70081
@ -92,6 +92,7 @@ const dragger = ref<Nullable<HTMLSpanElement>>(null);
|
|||||||
// const method = ref<number>(380);
|
// const method = ref<number>(380);
|
||||||
// props.type === "browser" ? BrowserLogConstants : ServiceLogConstants;
|
// props.type === "browser" ? BrowserLogConstants : ServiceLogConstants;
|
||||||
const columns = ref<any[]> (useLogStore.serviceLogColumn);
|
const columns = ref<any[]> (useLogStore.serviceLogColumn);
|
||||||
|
// const portalVisibleDefaultCols:string[] = ['Service', 'Instance','Content']
|
||||||
|
|
||||||
const visibleColumns = computed(() =>
|
const visibleColumns = computed(() =>
|
||||||
columns.value.filter((column) => column.isVisible)
|
columns.value.filter((column) => column.isVisible)
|
||||||
|
@ -39,7 +39,7 @@ limitations under the License. -->
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, ref } from "vue";
|
import { computed, ref } from "vue";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { ServiceLogConstants } from "./data";
|
// import { ServiceLogConstants } from "./data";
|
||||||
import { logStore } from "@/store/modules/log";
|
import { logStore } from "@/store/modules/log";
|
||||||
/*global defineProps, defineEmits */
|
/*global defineProps, defineEmits */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
@ -14,6 +14,24 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<div class="flex-h log-wrapper">
|
<div class="flex-h log-wrapper">
|
||||||
|
<div style="display: inline-block; margin-left: 20px">
|
||||||
|
<p style="margin-left: 10px">use collapse-tags-tooltip</p>
|
||||||
|
<el-select
|
||||||
|
v-model="selectedColumns"
|
||||||
|
multiple
|
||||||
|
collapse-tags
|
||||||
|
collapse-tags-tooltip
|
||||||
|
placeholder="Select"
|
||||||
|
style="width: 240px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in logStore.serviceLogColumn"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
<div v-if="!currentSearchTerm.length" class="flex-h items-center">
|
<div v-if="!currentSearchTerm.length" class="flex-h items-center">
|
||||||
<div v-for="(item, index) in arrayOfFilters" :key="index">
|
<div v-for="(item, index) in arrayOfFilters" :key="index">
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
@ -214,6 +232,7 @@ const appStore = useAppStoreWithOut();
|
|||||||
const selectorStore = useSelectorStore();
|
const selectorStore = useSelectorStore();
|
||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
const logStore = useLogStore();
|
const logStore = useLogStore();
|
||||||
|
const selectedColumns = ref<any[]>([])
|
||||||
const traceId = ref<string>("");
|
const traceId = ref<string>("");
|
||||||
const keywordsOfContent = ref<string[]>([]);
|
const keywordsOfContent = ref<string[]>([]);
|
||||||
const excludingKeywordsOfContent = ref<string[]>([]);
|
const excludingKeywordsOfContent = ref<string[]>([]);
|
||||||
|
Loading…
Reference in New Issue
Block a user