mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 01:33:54 +00:00
show just three columns on portal
This commit is contained in:
parent
fe4e27fcfd
commit
8f9801daa6
@ -14,16 +14,19 @@ 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 v-if="showColumList" class="flex-h items-center mr-5">
|
<div v-if="currentSearchTerm==='column'" class="flex-h items-center mr-5">
|
||||||
<p style="margin-right: 10px">Select visible columns</p>
|
<p style="margin-right: 10px">Select visible columns</p>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="selectedColumns"
|
v-model="selectedColumns"
|
||||||
|
clearable
|
||||||
multiple
|
multiple
|
||||||
collapse-tags
|
collapse-tags
|
||||||
collapse-tags-tooltip
|
collapse-tags-tooltip
|
||||||
placeholder="Select"
|
placeholder="Select"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
|
size="small"
|
||||||
>
|
>
|
||||||
|
<!-- <el-option @click="() =>{}" value="">Reset</el-option> -->
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in logStore.serviceLogColumn"
|
v-for="item in logStore.serviceLogColumn"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@ -262,7 +265,8 @@ limitations under the License. -->
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, reactive, watch, computed } from "vue";
|
import { ref, reactive, watch, computed, onMounted } from "vue";
|
||||||
|
import { useRoute } from "vue-router";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { Option } from "@/types/app";
|
import { Option } from "@/types/app";
|
||||||
import { useLogStore } from "@/store/modules/log";
|
import { useLogStore } from "@/store/modules/log";
|
||||||
@ -277,6 +281,7 @@ const { t } = useI18n();
|
|||||||
const appStore = useAppStoreWithOut();
|
const appStore = useAppStoreWithOut();
|
||||||
const selectorStore = useSelectorStore();
|
const selectorStore = useSelectorStore();
|
||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
|
const { portal } = useRoute().query;
|
||||||
const logStore = useLogStore();
|
const logStore = useLogStore();
|
||||||
const selectedColumns = ref<any[]>([]);
|
const selectedColumns = ref<any[]>([]);
|
||||||
const showColumList = ref<boolean>(false);
|
const showColumList = ref<boolean>(false);
|
||||||
@ -353,6 +358,17 @@ const arrayOfFilters = ref<filtersObject[]>([
|
|||||||
isVisible: dashboardStore.entity !== EntityType[2].value,
|
isVisible: dashboardStore.entity !== EntityType[2].value,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
onMounted(() => {
|
||||||
|
if (portal) {
|
||||||
|
logStore.hideColumns([
|
||||||
|
"endpoint",
|
||||||
|
"time",
|
||||||
|
"contentType",
|
||||||
|
"tags",
|
||||||
|
"traceID"])
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
init();
|
init();
|
||||||
function toggleColumSelector() {
|
function toggleColumSelector() {
|
||||||
showColumList.value = !showColumList.value;
|
showColumList.value = !showColumList.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user