mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 01:23:48 +00:00
removed unwanted logs
This commit is contained in:
parent
b44eaeedc8
commit
fe4e27fcfd
@ -29,12 +29,7 @@ limitations under the License. -->
|
|||||||
</span>
|
</span>
|
||||||
{{ t(item.value) }}
|
{{ t(item.value) }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else :class="item.label" :key="`col${index}`">
|
||||||
v-else
|
|
||||||
:class="item.label"
|
|
||||||
:key="`col${index}`"
|
|
||||||
@click="logColumn(item, index)"
|
|
||||||
>
|
|
||||||
{{ t(item.value) }}
|
{{ t(item.value) }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -76,7 +71,7 @@ import { useI18n } from "vue-i18n";
|
|||||||
import LogBrowser from "./LogBrowser.vue";
|
import LogBrowser from "./LogBrowser.vue";
|
||||||
import LogService from "./LogService.vue";
|
import LogService from "./LogService.vue";
|
||||||
import LogDetail from "./LogDetail.vue";
|
import LogDetail from "./LogDetail.vue";
|
||||||
import { logStore } from '@/store/modules/log'
|
import { logStore } from "@/store/modules/log";
|
||||||
|
|
||||||
/*global defineProps, Nullable */
|
/*global defineProps, Nullable */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -84,7 +79,7 @@ const props = defineProps({
|
|||||||
tableData: { type: Array, default: () => [] },
|
tableData: { type: Array, default: () => [] },
|
||||||
noLink: { type: Boolean, default: true },
|
noLink: { type: Boolean, default: true },
|
||||||
});
|
});
|
||||||
const useLogStore = logStore()
|
const useLogStore = logStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const currentLog = ref<any>({});
|
const currentLog = ref<any>({});
|
||||||
const showDetail = ref<boolean>(false);
|
const showDetail = ref<boolean>(false);
|
||||||
@ -98,18 +93,10 @@ const columns = ref<any[]>(
|
|||||||
);
|
);
|
||||||
// const portalVisibleDefaultCols:string[] = ['Service', 'Instance','Content']
|
// const portalVisibleDefaultCols:string[] = ['Service', 'Instance','Content']
|
||||||
|
|
||||||
const visibleColumns = computed(() =>
|
|
||||||
columns.value.filter((column) => column.isVisible)
|
|
||||||
);
|
|
||||||
|
|
||||||
function setCurrentLog(log: any) {
|
function setCurrentLog(log: any) {
|
||||||
showDetail.value = true;
|
showDetail.value = true;
|
||||||
currentLog.value = log;
|
currentLog.value = log;
|
||||||
}
|
}
|
||||||
function logColumn(item: any, index: number) {
|
|
||||||
console.log(index, item, visibleColumns.value[index]);
|
|
||||||
columns.value[index].isVisible = false;
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.log {
|
.log {
|
||||||
|
Loading…
Reference in New Issue
Block a user