mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 06:14:01 +00:00
feat: update lists
This commit is contained in:
parent
652b3f2bbc
commit
ff29b1314e
@ -38,7 +38,23 @@ limitations under the License. -->
|
|||||||
v-model="states.activeNames"
|
v-model="states.activeNames"
|
||||||
:style="{ '--el-collapse-header-font-size': '15px' }"
|
:style="{ '--el-collapse-header-font-size': '15px' }"
|
||||||
>
|
>
|
||||||
<el-collapse-item :title="t('metricName')" name="1">
|
<el-collapse-item :title="t('selectVisualization')" name="1">
|
||||||
|
<div class="chart-types">
|
||||||
|
<span
|
||||||
|
v-for="(type, index) in states.visType"
|
||||||
|
:key="index"
|
||||||
|
@click="changeChartType(type)"
|
||||||
|
:class="{ active: type.value === states.graph.type }"
|
||||||
|
>
|
||||||
|
{{ type.label }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
<el-collapse-item
|
||||||
|
:title="t('metricName')"
|
||||||
|
name="2"
|
||||||
|
v-show="states.graph.type !== 'InstanceList'"
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
<Selector
|
<Selector
|
||||||
:value="states.metrics"
|
:value="states.metrics"
|
||||||
@ -61,18 +77,6 @@ limitations under the License. -->
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
<el-collapse-item :title="t('selectVisualization')" name="2">
|
|
||||||
<div class="chart-types">
|
|
||||||
<span
|
|
||||||
v-for="(type, index) in states.visType"
|
|
||||||
:key="index"
|
|
||||||
@click="changeChartType(type)"
|
|
||||||
:class="{ active: type.value === states.graph.type }"
|
|
||||||
>
|
|
||||||
{{ type.label }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</el-collapse-item>
|
|
||||||
<el-collapse-item :title="t('graphStyles')" name="3">
|
<el-collapse-item :title="t('graphStyles')" name="3">
|
||||||
<component
|
<component
|
||||||
:is="`${states.graph.type}Config`"
|
:is="`${states.graph.type}Config`"
|
||||||
|
@ -17,13 +17,20 @@ limitations under the License. -->
|
|||||||
:data="selectorStore.endpoints"
|
:data="selectorStore.endpoints"
|
||||||
style="width: 100%; height: 100%; overflow: auto"
|
style="width: 100%; height: 100%; overflow: auto"
|
||||||
>
|
>
|
||||||
<el-table-column prop="label" label="Endpoints" />
|
<el-table-column label="Endpoints">
|
||||||
|
<template #default="scope">
|
||||||
|
<span class="link" @click="linkInstance(scope.row)">
|
||||||
|
{{ scope.row.label }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { defineProps, onBeforeMount } from "vue";
|
import { defineProps, onBeforeMount } from "vue";
|
||||||
import { useSelectorStore } from "@/store/modules/selectors";
|
import { useSelectorStore } from "@/store/modules/selectors";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
|
import router from "@/router";
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
data: {
|
data: {
|
||||||
@ -43,4 +50,16 @@ onBeforeMount(async () => {
|
|||||||
ElMessage.error(resp.errors);
|
ElMessage.error(resp.errors);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
function linkInstance(row: any) {
|
||||||
|
const path = `/dashboard/view/${row.layer}/endpoint/${selectorStore.currentService}/${row.value}`;
|
||||||
|
router.push(path);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.link {
|
||||||
|
cursor: pointer;
|
||||||
|
color: #409eff;
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -17,13 +17,20 @@ limitations under the License. -->
|
|||||||
:data="selectorStore.instances"
|
:data="selectorStore.instances"
|
||||||
style="width: 100%; height: 100%; overflow: auto"
|
style="width: 100%; height: 100%; overflow: auto"
|
||||||
>
|
>
|
||||||
<el-table-column prop="label" label="Service Instances" />
|
<el-table-column label="Service Instances">
|
||||||
|
<template #default="scope">
|
||||||
|
<span class="link" @click="linkInstance(scope.row)">
|
||||||
|
{{ scope.row.label }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { defineProps, onBeforeMount } from "vue";
|
import { defineProps, onBeforeMount } from "vue";
|
||||||
import { useSelectorStore } from "@/store/modules/selectors";
|
import { useSelectorStore } from "@/store/modules/selectors";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
|
import router from "@/router";
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
data: {
|
data: {
|
||||||
@ -43,4 +50,16 @@ onBeforeMount(async () => {
|
|||||||
ElMessage.error(resp.errors);
|
ElMessage.error(resp.errors);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
function linkInstance(row: any) {
|
||||||
|
const path = `/dashboard/view/${row.layer}/serviceInstance/${selectorStore.currentService}/${row.value}`;
|
||||||
|
router.push(path);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.link {
|
||||||
|
cursor: pointer;
|
||||||
|
color: #409eff;
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user