mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 00:44:08 +00:00
fix config
This commit is contained in:
parent
d4a900fe7f
commit
a5fe322304
@ -331,7 +331,7 @@ function update() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const htmlClient = linkClientMetrics.map((m: string, index: number) => {
|
const htmlClient = linkClientMetrics.map((m: string, index: number) => {
|
||||||
const opt: MetricConfigOpt = linkClientMetricConfig[index];
|
const opt: MetricConfigOpt = linkClientMetricConfig[index] || {};
|
||||||
const metric = topologyStore.linkClientMetrics[m].values.find(
|
const metric = topologyStore.linkClientMetrics[m].values.find(
|
||||||
(val: { id: string; value: unknown }) => val.id === data.id
|
(val: { id: string; value: unknown }) => val.id === data.id
|
||||||
);
|
);
|
||||||
|
@ -126,9 +126,9 @@ function changeMetric(val: string) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
() => props.metrics,
|
() => props.type,
|
||||||
(arr) => {
|
() => {
|
||||||
const m = arr.map((d: string) => {
|
const m = props.metrics.map((d: string) => {
|
||||||
return { label: d, value: d };
|
return { label: d, value: d };
|
||||||
});
|
});
|
||||||
metrics.value = m.length ? m : [{ label: "", value: "" }];
|
metrics.value = m.length ? m : [{ label: "", value: "" }];
|
||||||
@ -140,6 +140,7 @@ watch(
|
|||||||
label: "",
|
label: "",
|
||||||
calculation: "",
|
calculation: "",
|
||||||
};
|
};
|
||||||
|
console.log(currentConfig.value);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
@ -215,15 +215,6 @@ limitations under the License. -->
|
|||||||
</span>
|
</span>
|
||||||
<div v-show="index !== legend.metric.length - 1">&&</div>
|
<div v-show="index !== legend.metric.length - 1">&&</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="label">{{ t("conditions") }}</div>
|
|
||||||
<Selector
|
|
||||||
class="inputs"
|
|
||||||
:value="legend.condition"
|
|
||||||
:options="LegendConditions"
|
|
||||||
size="small"
|
|
||||||
placeholder="Select a condition"
|
|
||||||
@change="changeCondition"
|
|
||||||
/> -->
|
|
||||||
<el-button
|
<el-button
|
||||||
@click="setLegend"
|
@click="setLegend"
|
||||||
class="legend-btn"
|
class="legend-btn"
|
||||||
|
Loading…
Reference in New Issue
Block a user