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