mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-20 14:37:34 +00:00
address pr
This commit is contained in:
parent
4164df1e9c
commit
b583afaef6
@ -118,6 +118,7 @@ const msg = {
|
|||||||
skyWalkingServer: "Sky Walking Server",
|
skyWalkingServer: "Sky Walking Server",
|
||||||
functions: "Functions",
|
functions: "Functions",
|
||||||
browser: "Browser",
|
browser: "Browser",
|
||||||
|
linux: "Linux",
|
||||||
hourTip: "Select Hour",
|
hourTip: "Select Hour",
|
||||||
minuteTip: "Select Minute",
|
minuteTip: "Select Minute",
|
||||||
secondTip: "Select Second",
|
secondTip: "Select Second",
|
||||||
|
@ -117,6 +117,7 @@ const msg = {
|
|||||||
satellite: "Satellite",
|
satellite: "Satellite",
|
||||||
skyWalkingServer: "Sky Walking服务",
|
skyWalkingServer: "Sky Walking服务",
|
||||||
functions: "Functions",
|
functions: "Functions",
|
||||||
|
linux: "Linux",
|
||||||
browser: "浏览器",
|
browser: "浏览器",
|
||||||
hourTip: "选择小时",
|
hourTip: "选择小时",
|
||||||
minuteTip: "选择分钟",
|
minuteTip: "选择分钟",
|
||||||
|
@ -25,7 +25,7 @@ export const routesInfra: Array<RouteRecordRaw> = [
|
|||||||
title: "infrastructure",
|
title: "infrastructure",
|
||||||
icon: "scatter_plot",
|
icon: "scatter_plot",
|
||||||
exact: true,
|
exact: true,
|
||||||
hasGroup: false,
|
hasGroup: true,
|
||||||
},
|
},
|
||||||
redirect: "/infrastructure",
|
redirect: "/infrastructure",
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
@ -90,12 +90,10 @@ import { useDashboardStore } from "@/store/modules/dashboard";
|
|||||||
import {
|
import {
|
||||||
MetricTypes,
|
MetricTypes,
|
||||||
ListChartTypes,
|
ListChartTypes,
|
||||||
MetricCatalog,
|
|
||||||
DefaultGraphConfig,
|
DefaultGraphConfig,
|
||||||
EntityType,
|
EntityType,
|
||||||
ChartTypes,
|
ChartTypes,
|
||||||
PodsChartTypes,
|
PodsChartTypes,
|
||||||
ListEntity,
|
|
||||||
MetricsType,
|
MetricsType,
|
||||||
} from "../../data";
|
} from "../../data";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
@ -135,13 +133,8 @@ states.visTypes = setVisTypes();
|
|||||||
setDashboards();
|
setDashboards();
|
||||||
setMetricType();
|
setMetricType();
|
||||||
|
|
||||||
async function setMetricType(catalog?: string) {
|
async function setMetricType() {
|
||||||
const { graph } = dashboardStore.selectedGrid;
|
const { graph } = dashboardStore.selectedGrid;
|
||||||
if (states.isList) {
|
|
||||||
catalog = catalog || ListEntity[graph.type];
|
|
||||||
} else {
|
|
||||||
catalog = catalog || dashboardStore.entity;
|
|
||||||
}
|
|
||||||
const json = await dashboardStore.fetchMetricList();
|
const json = await dashboardStore.fetchMetricList();
|
||||||
if (json.errors) {
|
if (json.errors) {
|
||||||
ElMessage.error(json.errors);
|
ElMessage.error(json.errors);
|
||||||
@ -249,12 +242,7 @@ function changeChartType(item: Option) {
|
|||||||
states.metrics = [""];
|
states.metrics = [""];
|
||||||
states.metricTypes = [""];
|
states.metricTypes = [""];
|
||||||
}
|
}
|
||||||
const catalog: { [key: string]: string } = {
|
setMetricType();
|
||||||
InstanceList: EntityType[3].value,
|
|
||||||
EndpointList: EntityType[2].value,
|
|
||||||
ServiceList: EntityType[0].value,
|
|
||||||
};
|
|
||||||
setMetricType(catalog[graph.type]);
|
|
||||||
setDashboards();
|
setDashboards();
|
||||||
states.dashboardName = "";
|
states.dashboardName = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user