mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-06 17:54:09 +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;
|
||||
widget?: WidgetConfig;
|
||||
graph?: GraphConfig;
|
||||
metrics?: string[];
|
||||
expressions?: string[];
|
||||
metricTypes?: string[];
|
||||
typesOfMQE?: string[];
|
||||
children?: { name: string; children: LayoutConfig[]; expression?: string; enable?: boolean }[];
|
||||
activedTabIndex?: number;
|
||||
@ -76,7 +74,6 @@ export type Filters = {
|
||||
export type MetricConfigOpt = {
|
||||
unit?: string;
|
||||
label?: string;
|
||||
calculation?: string;
|
||||
labelsIndex?: string;
|
||||
sortOrder?: string;
|
||||
topN?: number;
|
||||
|
@ -160,7 +160,6 @@ limitations under the License. -->
|
||||
unit: "",
|
||||
label: "",
|
||||
labelsIndex: "",
|
||||
calculation: "",
|
||||
sortOrder: "DES",
|
||||
});
|
||||
|
||||
@ -203,6 +202,11 @@ limitations under the License. -->
|
||||
}, []);
|
||||
|
||||
states.dashboardList = arr.length ? arr : [{ label: "", value: "" }];
|
||||
if (states.metrics && states.metrics[0]) {
|
||||
queryMetrics();
|
||||
} else {
|
||||
emit("update", {});
|
||||
}
|
||||
}
|
||||
|
||||
function changeChartType(item: Option) {
|
||||
@ -211,8 +215,6 @@ limitations under the License. -->
|
||||
if (states.isList) {
|
||||
dashboardStore.selectWidget({
|
||||
...dashboardStore.selectedGrid,
|
||||
metrics: [""],
|
||||
metricTypes: [""],
|
||||
expressions: [""],
|
||||
typesOfMQE: [""],
|
||||
});
|
||||
@ -250,7 +252,6 @@ limitations under the License. -->
|
||||
...dashboardStore.selectedGrid,
|
||||
typesOfMQE: states.metricTypes,
|
||||
});
|
||||
|
||||
emit("update", params.source || {});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user