mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-07 00:15:23 +00:00
fix: query
This commit is contained in:
parent
b8d7faf4fc
commit
27133a1080
3
src/types/dashboard.d.ts
vendored
3
src/types/dashboard.d.ts
vendored
@ -34,9 +34,7 @@ export interface LayoutConfig {
|
|||||||
type: string;
|
type: string;
|
||||||
widget?: WidgetConfig;
|
widget?: WidgetConfig;
|
||||||
graph?: GraphConfig;
|
graph?: GraphConfig;
|
||||||
metrics?: string[];
|
|
||||||
expressions?: string[];
|
expressions?: string[];
|
||||||
metricTypes?: string[];
|
|
||||||
typesOfMQE?: string[];
|
typesOfMQE?: string[];
|
||||||
children?: { name: string; children: LayoutConfig[]; expression?: string; enable?: boolean }[];
|
children?: { name: string; children: LayoutConfig[]; expression?: string; enable?: boolean }[];
|
||||||
activedTabIndex?: number;
|
activedTabIndex?: number;
|
||||||
@ -76,7 +74,6 @@ export type Filters = {
|
|||||||
export type MetricConfigOpt = {
|
export type MetricConfigOpt = {
|
||||||
unit?: string;
|
unit?: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
calculation?: string;
|
|
||||||
labelsIndex?: string;
|
labelsIndex?: string;
|
||||||
sortOrder?: string;
|
sortOrder?: string;
|
||||||
topN?: number;
|
topN?: number;
|
||||||
|
@ -160,7 +160,6 @@ limitations under the License. -->
|
|||||||
unit: "",
|
unit: "",
|
||||||
label: "",
|
label: "",
|
||||||
labelsIndex: "",
|
labelsIndex: "",
|
||||||
calculation: "",
|
|
||||||
sortOrder: "DES",
|
sortOrder: "DES",
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -203,6 +202,11 @@ limitations under the License. -->
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
states.dashboardList = arr.length ? arr : [{ label: "", value: "" }];
|
states.dashboardList = arr.length ? arr : [{ label: "", value: "" }];
|
||||||
|
if (states.metrics && states.metrics[0]) {
|
||||||
|
queryMetrics();
|
||||||
|
} else {
|
||||||
|
emit("update", {});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeChartType(item: Option) {
|
function changeChartType(item: Option) {
|
||||||
@ -211,8 +215,6 @@ limitations under the License. -->
|
|||||||
if (states.isList) {
|
if (states.isList) {
|
||||||
dashboardStore.selectWidget({
|
dashboardStore.selectWidget({
|
||||||
...dashboardStore.selectedGrid,
|
...dashboardStore.selectedGrid,
|
||||||
metrics: [""],
|
|
||||||
metricTypes: [""],
|
|
||||||
expressions: [""],
|
expressions: [""],
|
||||||
typesOfMQE: [""],
|
typesOfMQE: [""],
|
||||||
});
|
});
|
||||||
@ -250,7 +252,6 @@ limitations under the License. -->
|
|||||||
...dashboardStore.selectedGrid,
|
...dashboardStore.selectedGrid,
|
||||||
typesOfMQE: states.metricTypes,
|
typesOfMQE: states.metricTypes,
|
||||||
});
|
});
|
||||||
|
|
||||||
emit("update", params.source || {});
|
emit("update", params.source || {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user