diff --git a/src/views/dashboard/related/trace/Content.vue b/src/views/dashboard/related/trace/Content.vue
index 072fd45e..4972db85 100644
--- a/src/views/dashboard/related/trace/Content.vue
+++ b/src/views/dashboard/related/trace/Content.vue
@@ -16,7 +16,15 @@ limitations under the License. -->
-
{{ t("limit") }}
+
{{ t("setOrder") }}
+
+
{{ t("limit") }}
@@ -48,6 +56,7 @@ limitations under the License. -->
import type { LayoutConfig } from "@/types/dashboard";
import { mutationObserver } from "@/utils/mutation";
import TraceQuery from "./components/TraceQuery/Index.vue";
+ import { QueryOrders } from "@/views/dashboard/data";
/*global defineProps */
const props = defineProps({
data: {
@@ -64,6 +73,7 @@ limitations under the License. -->
const currentWidth = ref(280);
const needQuery = ref(true);
const isDrag = ref(false);
+ const queryOrder = ref(QueryOrders[0].value);
const limit = ref(PageSize);
const defaultWidth = 280;
const minArrowLeftWidth = 120;
@@ -77,7 +87,11 @@ limitations under the License. -->
paging: { pageNum: 1, pageSize: val },
});
}
-
+ function changeQueryOrder() {
+ traceStore.setTraceCondition({
+ queryOrder: queryOrder.value,
+ });
+ }
// When click the arrow, the width of the segment list is determined by the direction it points to.
function triggerArrow() {
currentWidth.value = isLeft.value ? 0 : defaultWidth;
diff --git a/src/views/dashboard/related/trace/components/TraceQuery/TracesTable.vue b/src/views/dashboard/related/trace/components/TraceQuery/TracesTable.vue
index 2d21326c..0c717f1f 100644
--- a/src/views/dashboard/related/trace/components/TraceQuery/TracesTable.vue
+++ b/src/views/dashboard/related/trace/components/TraceQuery/TracesTable.vue
@@ -16,14 +16,7 @@ limitations under the License. -->