@@ -289,8 +289,7 @@ limitations under the License. -->
states.metrics = [""];
states.metricTypes = [""];
states.tips = [""];
- let v = {};
- v = { typesOfMQE: states.metricTypes, expressions: states.metrics };
+ let v: any = { typesOfMQE: states.metricTypes, expressions: states.metrics };
if (states.isList) {
states.subMetrics = [""];
states.subMetricTypes = [""];
@@ -331,6 +330,7 @@ limitations under the License. -->
...p,
metricConfig,
});
+ queryMetrics();
}
function setMetricConfig(index: number) {
@@ -434,5 +434,6 @@ limitations under the License. -->
.link {
cursor: pointer;
color: $active-color;
+ padding-left: 2px;
}
diff --git a/src/views/dashboard/configuration/widget/metric/Standard.vue b/src/views/dashboard/configuration/widget/metric/Standard.vue
index 8068f2cb..6b8de5b6 100644
--- a/src/views/dashboard/configuration/widget/metric/Standard.vue
+++ b/src/views/dashboard/configuration/widget/metric/Standard.vue
@@ -28,7 +28,7 @@ limitations under the License. -->
"
/>
+
{{ t("labels") }}
topN: props.currentMetricConfig.topN || 10,
});
const metricTypes = computed(() => dashboardStore.selectedGrid.typesOfMQE || []);
- const hasLabel = computed(() => {
- const graph = dashboardStore.selectedGrid.graph || {};
- return ListChartTypes.includes(graph.type);
- });
const isList = computed(() => {
const graph = dashboardStore.selectedGrid.graph || {};
return ListChartTypes.includes(graph.type);
diff --git a/src/views/dashboard/controls/Widget.vue b/src/views/dashboard/controls/Widget.vue
index 9265b9c8..49078a07 100644
--- a/src/views/dashboard/controls/Widget.vue
+++ b/src/views/dashboard/controls/Widget.vue
@@ -160,7 +160,7 @@ limitations under the License. -->
dashboardStore.selectWidget(props.data);
}
watch(
- () => [props.data.metricTypes, props.data.metrics, props.data.expressions],
+ () => props.data.expressions,
() => {
if (!dashboardStore.selectedGrid) {
return;