From 45de34e730cea3417840a2bc79c7041c5890ba37 Mon Sep 17 00:00:00 2001 From: Fine Date: Tue, 5 Nov 2024 10:32:43 +0800 Subject: [PATCH] view dashboards by topn list --- src/locales/lang/en.ts | 1 + src/locales/lang/es.ts | 1 + src/locales/lang/zh.ts | 1 + src/views/dashboard/Widget.vue | 1 + src/views/dashboard/configuration/Widget.vue | 1 + .../configuration/widget/metric/Index.vue | 47 +++++++++++++++++-- src/views/dashboard/controls/Widget.vue | 1 + src/views/dashboard/graphs/TopList.vue | 28 ++++++++++- 8 files changed, 75 insertions(+), 6 deletions(-) diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 49cf581d..40df7b40 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -388,5 +388,6 @@ const msg = { hierarchyNodeDashboard: "As dashboard for Hierarchy Graph Node", valueMappings: "Value Mappings", mappingTip: "Notice: The mapping key is a Regex string, e.g. ^([0-9])$", + valueDashboard: "Value Related Dashboard", }; export default msg; diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts index 8cda2ce3..d6c34918 100644 --- a/src/locales/lang/es.ts +++ b/src/locales/lang/es.ts @@ -388,5 +388,6 @@ const msg = { hierarchyNodeDashboard: "As dashboard for Hierarchy Graph Node", valueMappings: "Value Mappings", mappingTip: "Aviso: La clave de mapeo es una cadena Regex, p. ej. ^([0-9])$", + valueDashboard: "Value Related Dashboard", }; export default msg; diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 95389196..8dd1c4a5 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -386,5 +386,6 @@ const msg = { hierarchyNodeDashboard: "作为层次图节点的dashboard", valueMappings: "值映射", mappingTip: "注意: 映射键是一个正则表达式字符串,比如 ^([0-9])$", + valueDashboard: "值相关的仪表板", }; export default msg; diff --git a/src/views/dashboard/Widget.vue b/src/views/dashboard/Widget.vue index 30f02385..36219761 100644 --- a/src/views/dashboard/Widget.vue +++ b/src/views/dashboard/Widget.vue @@ -38,6 +38,7 @@ limitations under the License. --> typesOfMQE: typesOfMQE || [], subExpressions: config.subExpressions || [], subTypesOfMQE: config.subTypesOfMQE || [], + valueRelatedDashboard: config.valueRelatedDashboard, }" :needQuery="true" /> diff --git a/src/views/dashboard/configuration/Widget.vue b/src/views/dashboard/configuration/Widget.vue index dc36d47f..3781b979 100644 --- a/src/views/dashboard/configuration/Widget.vue +++ b/src/views/dashboard/configuration/Widget.vue @@ -41,6 +41,7 @@ limitations under the License. --> typesOfMQE: dashboardStore.selectedGrid.typesOfMQE || [], subExpressions: dashboardStore.selectedGrid.subExpressions || [], subTypesOfMQE: dashboardStore.selectedGrid.subTypesOfMQE || [], + valueRelatedDashboard: dashboardStore.selectedGrid.valueRelatedDashboard, }" :needQuery="true" @expressionTips="getErrors" diff --git a/src/views/dashboard/configuration/widget/metric/Index.vue b/src/views/dashboard/configuration/widget/metric/Index.vue index 452d993e..f85bdd78 100644 --- a/src/views/dashboard/configuration/widget/metric/Index.vue +++ b/src/views/dashboard/configuration/widget/metric/Index.vue @@ -95,6 +95,20 @@ limitations under the License. --> {{ type.label }} +
+
{{ t("valueDashboard") }}
+
+ +
+