From d111c167d8df1799ee30577d71b78ed44bf4ecff Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Fri, 25 Mar 2022 22:26:11 +0800 Subject: [PATCH] update metric types --- .../configuration/widget/metric/Standard.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/dashboard/configuration/widget/metric/Standard.vue b/src/views/dashboard/configuration/widget/metric/Standard.vue index 560a6cf8..6c9e6ede 100644 --- a/src/views/dashboard/configuration/widget/metric/Standard.vue +++ b/src/views/dashboard/configuration/widget/metric/Standard.vue @@ -30,7 +30,7 @@ limitations under the License. --> @change="changeConfigs(index, { unit: currentMetricConfig.unit })" /> -
+
{{ t("labels") }} @change="changeConfigs(index, { label: currentMetricConfig.label })" />
-
+
{{ t("labelsIndex") }} :clearable="true" />
-
+
{{ t("sortOrder") }} (props.currentMetricConfig); +const metricType = ref( + dashboardStore.selectedGrid.metricTypes[props.index] +); function changeConfigs(index: number, param: { [key: string]: string }) { const metricConfig = dashboardStore.selectedGrid.metricConfig || [];