diff --git a/src/components/Graph.vue b/src/components/Graph.vue index 174d6de4..280bac4f 100644 --- a/src/components/Graph.vue +++ b/src/components/Graph.vue @@ -235,12 +235,10 @@ limitations under the License. --> .no-data { font-size: $font-size-smaller; height: 100%; - box-sizing: border-box; - display: -webkit-box; - -webkit-box-orient: horizontal; - -webkit-box-pack: center; - -webkit-box-align: center; - color: #666; + align-items: center; + justify-content: center; + display: flex; + color: var(--text-color-placeholder); } .chart { diff --git a/src/hooks/useExpressionsProcessor.ts b/src/hooks/useExpressionsProcessor.ts index 080469ae..0a346108 100644 --- a/src/hooks/useExpressionsProcessor.ts +++ b/src/hooks/useExpressionsProcessor.ts @@ -112,22 +112,7 @@ export async function useExpressionsQueryProcessor(config: Indexable) { tips.push(obj.error); typesOfMQE.push(type); if (!obj.error) { - if (type === ExpressionResultType.TIME_SERIES_VALUES) { - if (results.length === 1) { - const label = results[0].metric && results[0].metric.labels[0] && results[0].metric.labels[0].value; - source[c.label || label || name] = results[0].values.map((d: { value: unknown }) => d.value) || []; - } else { - for (const item of results) { - const values = item.values.map((d: { value: unknown }) => d.value) || []; - const label = item.metric.labels - .map((d: { key: string; value: string }) => `${d.key}=${d.value}`) - .join(","); - - source[label] = values; - } - } - } - if (type === ExpressionResultType.SINGLE_VALUE) { + if ([ExpressionResultType.SINGLE_VALUE, ExpressionResultType.TIME_SERIES_VALUES].includes(type)) { for (const item of results) { const label = item.metric && diff --git a/src/store/modules/trace.ts b/src/store/modules/trace.ts index 0b860130..4c2d5876 100644 --- a/src/store/modules/trace.ts +++ b/src/store/modules/trace.ts @@ -23,7 +23,6 @@ import type { AxiosResponse } from "axios"; import { useAppStoreWithOut } from "@/store/modules/app"; import { useSelectorStore } from "@/store/modules/selectors"; import { QueryOrders } from "@/views/dashboard/data"; - interface TraceState { services: Service[]; instances: Instance[]; @@ -168,6 +167,7 @@ export const traceStore = defineStore({ return res.data; } const data = res.data.data.trace.spans; + this.setTraceSpans(data || []); return res.data; }, diff --git a/src/views/dashboard/List.vue b/src/views/dashboard/List.vue index 66285edc..5b690366 100644 --- a/src/views/dashboard/List.vue +++ b/src/views/dashboard/List.vue @@ -391,6 +391,8 @@ limitations under the License. --> delete child.label; delete child.value; delete child.filters; + delete child.typesOfMQE; + delete child.subTypesOfMQE; if (isEmptyObject(child.graph)) { delete child.graph; } diff --git a/src/views/dashboard/controls/Trace.vue b/src/views/dashboard/controls/Trace.vue index 4db7e77a..61f3907b 100644 --- a/src/views/dashboard/controls/Trace.vue +++ b/src/views/dashboard/controls/Trace.vue @@ -183,7 +183,7 @@ limitations under the License. --> .trace-line { position: relative; width: 2px; - height: 900px; + height: 100%; background-color: #e8e8e8; cursor: ew-resize; diff --git a/src/views/dashboard/graphs/Table.vue b/src/views/dashboard/graphs/Table.vue index baaf2190..df563ac5 100644 --- a/src/views/dashboard/graphs/Table.vue +++ b/src/views/dashboard/graphs/Table.vue @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. -->