mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 11:05:24 +00:00
fix: bugs fix
This commit is contained in:
parent
21318c1b71
commit
f8d4b60f2b
@ -29,7 +29,7 @@ limitations under the License. -->
|
||||
<div class="selectors-item" v-if="states.key === 3 || states.key === 4">
|
||||
<span class="label">
|
||||
{{
|
||||
dashboardStore.entity === "Endpoint"
|
||||
["EndpointRelation", "Endpoint"].includes(dashboardStore.entity)
|
||||
? "$Endpoint"
|
||||
: "$ServiceInstance"
|
||||
}}
|
||||
|
@ -50,9 +50,21 @@ limitations under the License. -->
|
||||
</div>
|
||||
<div class="node-settings">
|
||||
<h5 class="title">{{ t("nodeSettings") }}</h5>
|
||||
<span v-show="isServer">
|
||||
<div class="label">{{ t("nodeDashboard") }}</div>
|
||||
<div v-for="(item, index) in items" :key="index" class="metric-item">
|
||||
<el-input
|
||||
v-show="!isServer"
|
||||
v-model="states.nodeDashboard"
|
||||
placeholder="Please input a dashboard name for nodes"
|
||||
@change="updateSettings"
|
||||
size="small"
|
||||
class="inputs"
|
||||
/>
|
||||
<div
|
||||
v-show="isServer"
|
||||
v-for="(item, index) in items"
|
||||
:key="index"
|
||||
class="metric-item"
|
||||
>
|
||||
<Selector
|
||||
:value="item.scope"
|
||||
:options="ScopeType"
|
||||
@ -85,7 +97,6 @@ limitations under the License. -->
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
</span>
|
||||
<div class="label">{{ t("nodeMetrics") }}</div>
|
||||
<Selector
|
||||
class="inputs"
|
||||
@ -228,6 +239,8 @@ async function getMetricList() {
|
||||
const entity =
|
||||
dashboardStore.entity === EntityType[1].value
|
||||
? EntityType[0].value
|
||||
: dashboardStore.entity === EntityType[4].value
|
||||
? EntityType[3].value
|
||||
: dashboardStore.entity;
|
||||
states.nodeMetricList = (json.data.metrics || []).filter(
|
||||
(d: { catalog: string }) => entity === (MetricCatalog as any)[d.catalog]
|
||||
@ -291,9 +304,9 @@ function deleteItem(index: number) {
|
||||
function updateSettings() {
|
||||
emit("update", {
|
||||
linkDashboard: states.linkDashboard,
|
||||
nodeDashboard: items.filter(
|
||||
(d: { scope: string; dashboard: string }) => d.dashboard
|
||||
),
|
||||
nodeDashboard: isServer
|
||||
? items.filter((d: { scope: string; dashboard: string }) => d.dashboard)
|
||||
: states.nodeDashboard,
|
||||
linkServerMetrics: states.linkServerMetrics,
|
||||
linkClientMetrics: states.linkClientMetrics,
|
||||
nodeMetrics: states.nodeMetrics,
|
||||
|
Loading…
Reference in New Issue
Block a user