mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-20 14:36:19 +00:00
update instance list
This commit is contained in:
parent
27defa862a
commit
e9b9f51061
@ -113,7 +113,6 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function queryMetrics() {
|
async function queryMetrics() {
|
||||||
console.log(props.data);
|
|
||||||
const params = await useQueryProcessor(props.data);
|
const params = await useQueryProcessor(props.data);
|
||||||
|
|
||||||
if (!params) {
|
if (!params) {
|
||||||
|
@ -42,6 +42,19 @@ limitations under the License. -->
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="Service Instances">
|
||||||
|
<template #default="scope">
|
||||||
|
<div class="attributes">
|
||||||
|
<div
|
||||||
|
v-for="(attr, index) in scope.row.attributes"
|
||||||
|
:key="attr.name + index"
|
||||||
|
:style="{ fontSize: `${config.fontSize}px` }"
|
||||||
|
>
|
||||||
|
{{ attr.name }}: {{ attr.value }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(metric, index) in config.metrics"
|
v-for="(metric, index) in config.metrics"
|
||||||
:label="metric"
|
:label="metric"
|
||||||
@ -182,6 +195,7 @@ function clickInstance(scope: any) {
|
|||||||
function changePage(pageIndex: number) {
|
function changePage(pageIndex: number) {
|
||||||
instances.value = searchInstances.value.splice(pageIndex - 1, pageSize);
|
instances.value = searchInstances.value.splice(pageIndex - 1, pageSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
function searchList() {
|
function searchList() {
|
||||||
searchInstances.value = selectorStore.pods.filter((d: { label: string }) =>
|
searchInstances.value = selectorStore.pods.filter((d: { label: string }) =>
|
||||||
d.label.includes(searchText.value)
|
d.label.includes(searchText.value)
|
||||||
@ -214,4 +228,9 @@ watch(
|
|||||||
.inputs {
|
.inputs {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.attributes {
|
||||||
|
max-height: 80px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user