update content

This commit is contained in:
Qiuxia Fan 2022-04-06 10:47:15 +08:00
parent f8cec21045
commit bd28e72584
3 changed files with 11 additions and 7 deletions

View File

@ -111,6 +111,8 @@ const msg = {
noRoot: "Please set a root dashboard for", noRoot: "Please set a root dashboard for",
noWidget: "Please add widgets.", noWidget: "Please add widgets.",
rename: "Rename", rename: "Rename",
deleteTitle: "Are you sure to delete this?",
rootTitle: "Are you sure to set this?",
selfObservability: "Self Observability", selfObservability: "Self Observability",
satellite: "Satellite", satellite: "Satellite",
skyWalkingServer: "SkyWalking Server", skyWalkingServer: "SkyWalking Server",

View File

@ -109,6 +109,8 @@ const msg = {
showGroup: "显示分组", showGroup: "显示分组",
noWidget: "请添加组件", noWidget: "请添加组件",
rename: "重命名", rename: "重命名",
deleteTitle: "确定删除吗?",
rootTitle: "确定设置为Root吗",
selfObservability: "自监控", selfObservability: "自监控",
satellite: "Satellite", satellite: "Satellite",
skyWalkingServer: "SkyWalking服务", skyWalkingServer: "SkyWalking服务",

View File

@ -51,12 +51,12 @@ limitations under the License. -->
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column prop="name" label="Name"> <el-table-column prop="name" label="Name">
<template #default="scope"> <template #default="scope">
<span class="cp name" @click="handleView(scope.row)">{{ <span class="cp name" @click="handleView(scope.row)">
scope.row.name {{ scope.row.name }}
}}</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="layer" label="Layer" width="200" /> <el-table-column prop="layer" label="Layer" width="120" />
<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="60">
<template #default="scope"> <template #default="scope">
@ -74,7 +74,7 @@ limitations under the License. -->
{{ t("rename") }} {{ t("rename") }}
</el-button> </el-button>
<el-popconfirm <el-popconfirm
title="Are you sure to delete this?" :title="t('deleteTitle')"
@confirm="handleDelete(scope.row)" @confirm="handleDelete(scope.row)"
> >
<template #reference> <template #reference>
@ -84,7 +84,7 @@ limitations under the License. -->
</template> </template>
</el-popconfirm> </el-popconfirm>
<el-popconfirm <el-popconfirm
title="Are you sure to set this?" :title="t('rootTitle')"
@confirm="setRoot(scope.row)" @confirm="setRoot(scope.row)"
v-if=" v-if="
[EntityType[0].value, EntityType[1].value].includes( [EntityType[0].value, EntityType[1].value].includes(
@ -93,7 +93,7 @@ limitations under the License. -->
" "
> >
<template #reference> <template #reference>
<el-button size="small" style="width: 120px" type="danger"> <el-button size="small" style="width: 110px" type="danger">
{{ scope.row.isRoot ? t("setNormal") : t("setRoot") }} {{ scope.row.isRoot ? t("setNormal") : t("setRoot") }}
</el-button> </el-button>
</template> </template>