mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
feat: add top level
This commit is contained in:
parent
c5d80d96fb
commit
d6462b6b37
@ -57,14 +57,34 @@ limitations under the License. -->
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="layer" label="Layer" width="160" />
|
<el-table-column prop="layer" label="Layer" width="160" />
|
||||||
<el-table-column prop="entity" label="Entity" width="200" />
|
<el-table-column prop="entity" label="Entity" width="200" />
|
||||||
<el-table-column prop="isRoot" label="Root" width="60">
|
<el-table-column prop="isRoot" label="Root" width="150">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>
|
<el-popconfirm
|
||||||
{{ scope.row.isRoot ? t("yes") : t("no") }}
|
:title="t('rootTitle')"
|
||||||
</span>
|
@confirm="setRoot(scope.row)"
|
||||||
|
v-if="[EntityType[0].value, EntityType[1].value].includes(scope.row.entity)"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-button size="small" style="width: 110px">
|
||||||
|
{{ scope.row.isRoot ? t("setNormal") : t("setRoot") }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-popconfirm>
|
||||||
|
<span v-else> -- </span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="Operations" width="350">
|
<el-table-column prop="topLevel" label="Top Level" width="80">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-switch
|
||||||
|
v-model="scope.row.topLevel"
|
||||||
|
@change="handleTopLevel(scope.row)"
|
||||||
|
size="small"
|
||||||
|
v-if="[EntityType[0].value].includes(scope.row.entity)"
|
||||||
|
/>
|
||||||
|
<span v-else> -- </span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="Operations" width="300">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button size="small" @click="handleEdit(scope.row)">
|
<el-button size="small" @click="handleEdit(scope.row)">
|
||||||
{{ t("edit") }}
|
{{ t("edit") }}
|
||||||
@ -79,17 +99,6 @@ limitations under the License. -->
|
|||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
<el-popconfirm
|
|
||||||
:title="t('rootTitle')"
|
|
||||||
@confirm="setRoot(scope.row)"
|
|
||||||
v-if="[EntityType[0].value, EntityType[1].value].includes(scope.row.entity)"
|
|
||||||
>
|
|
||||||
<template #reference>
|
|
||||||
<el-button size="small" style="width: 110px" type="danger">
|
|
||||||
{{ scope.row.isRoot ? t("setNormal") : t("setRoot") }}
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
</el-popconfirm>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -373,6 +382,9 @@ limitations under the License. -->
|
|||||||
searchDashboards(1);
|
searchDashboards(1);
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
|
function handleTopLevel(row: any) {
|
||||||
|
console.log(row);
|
||||||
|
}
|
||||||
function handleRename(row: DashboardItem) {
|
function handleRename(row: DashboardItem) {
|
||||||
ElMessageBox.prompt("Please input dashboard name", "Edit", {
|
ElMessageBox.prompt("Please input dashboard name", "Edit", {
|
||||||
confirmButtonText: "OK",
|
confirmButtonText: "OK",
|
||||||
|
Loading…
Reference in New Issue
Block a user