From 57f13f2ac535c710a60478cacc690381071217bf Mon Sep 17 00:00:00 2001 From: Fine Date: Mon, 11 Dec 2023 17:18:11 +0800 Subject: [PATCH] feat: update config --- src/locales/lang/en.ts | 1 + src/locales/lang/es.ts | 1 + src/locales/lang/zh.ts | 1 + src/types/dashboard.d.ts | 2 +- src/views/dashboard/configuration/Tab.vue | 32 +++++++++++++++++------ src/views/dashboard/controls/Tab.vue | 9 +++++-- 6 files changed, 35 insertions(+), 11 deletions(-) diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 43987752..797b463f 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -384,5 +384,6 @@ const msg = { unhealthyExpression: "Unhealthy Expression", traceDesc: "The trace segment serves as a representation of a trace portion executed within one single OS process, such as a JVM. It comprises a collection of spans, typically associated with and collected from a single request or execution context.", + tabExpressions: "Tab Expressions", }; export default msg; diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts index 801c2ca3..18a2d46f 100644 --- a/src/locales/lang/es.ts +++ b/src/locales/lang/es.ts @@ -384,5 +384,6 @@ const msg = { unhealthyExpression: "Unhealthy Expression", traceDesc: "The trace segment serves as a representation of a trace portion executed within one single OS process, such as a JVM. It comprises a collection of spans, typically associated with and collected from a single request or execution context.", + tabExpressions: "Tab Expressions", }; export default msg; diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 3225a3ac..36962afc 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -382,5 +382,6 @@ const msg = { unhealthyExpression: "非健康表达式", traceDesc: "Trace Segment代表在单一操作系统进程(例如JVM)中执行的追踪部分。它包含了一组跨度(spans),这些跨度通常与单一请求或执行上下文关联。", + tabExpressions: "Tab表达式", }; export default msg; diff --git a/src/types/dashboard.d.ts b/src/types/dashboard.d.ts index 8612c10e..fde95f53 100644 --- a/src/types/dashboard.d.ts +++ b/src/types/dashboard.d.ts @@ -36,7 +36,7 @@ export interface LayoutConfig { expressions?: string[]; metricTypes?: string[]; typesOfMQE?: string[]; - children?: { name: string; children: LayoutConfig[] }[]; + children?: { name: string; children: LayoutConfig[]; expression?: string }[]; activedTabIndex?: number; metricConfig?: MetricConfigOpt[]; id?: string; diff --git a/src/views/dashboard/configuration/Tab.vue b/src/views/dashboard/configuration/Tab.vue index 7be6e1b7..d9d81894 100644 --- a/src/views/dashboard/configuration/Tab.vue +++ b/src/views/dashboard/configuration/Tab.vue @@ -12,8 +12,11 @@ See the License for the specific language governing permissions and limitations under the License. -->