mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 14:05:25 +00:00
fix trace duration
This commit is contained in:
parent
1fe0de361a
commit
75cd9fa62d
@ -72,9 +72,19 @@ limitations under the License. -->
|
|||||||
</div>
|
</div>
|
||||||
<div class="mr-10">
|
<div class="mr-10">
|
||||||
<span class="sm b grey mr-5">{{ t("duration") }}:</span>
|
<span class="sm b grey mr-5">{{ t("duration") }}:</span>
|
||||||
<el-input size="small" class="inputs mr-5" v-model="minTraceDuration" />
|
<el-input
|
||||||
|
size="small"
|
||||||
|
class="inputs mr-5"
|
||||||
|
v-model="minTraceDuration"
|
||||||
|
type="number"
|
||||||
|
/>
|
||||||
<span class="grey mr-5">-</span>
|
<span class="grey mr-5">-</span>
|
||||||
<el-input size="small" class="inputs" v-model="maxTraceDuration" />
|
<el-input
|
||||||
|
size="small"
|
||||||
|
class="inputs"
|
||||||
|
v-model="maxTraceDuration"
|
||||||
|
type="number"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-h">
|
<div class="flex-h">
|
||||||
@ -93,6 +103,7 @@ import { useSelectorStore } from "@/store/modules/selectors";
|
|||||||
import ConditionTags from "@/views/components/ConditionTags.vue";
|
import ConditionTags from "@/views/components/ConditionTags.vue";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import { EntityType } from "../../data";
|
import { EntityType } from "../../data";
|
||||||
|
import { number } from "@intlify/core-base";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const appStore = useAppStoreWithOut();
|
const appStore = useAppStoreWithOut();
|
||||||
@ -100,8 +111,8 @@ const selectorStore = useSelectorStore();
|
|||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
const traceStore = useTraceStore();
|
const traceStore = useTraceStore();
|
||||||
const traceId = ref<string>("");
|
const traceId = ref<string>("");
|
||||||
const minTraceDuration = ref<string>("");
|
const minTraceDuration = ref<number>(NaN);
|
||||||
const maxTraceDuration = ref<string>("");
|
const maxTraceDuration = ref<number>(NaN);
|
||||||
const tagsList = ref<string[]>([]);
|
const tagsList = ref<string[]>([]);
|
||||||
const tagsMap = ref<Option[]>([]);
|
const tagsMap = ref<Option[]>([]);
|
||||||
const state = reactive<any>({
|
const state = reactive<any>({
|
||||||
@ -174,8 +185,8 @@ function searchTraces() {
|
|||||||
serviceInstanceId: instance || state.instance.id || undefined,
|
serviceInstanceId: instance || state.instance.id || undefined,
|
||||||
traceState: state.status.value || "ALL",
|
traceState: state.status.value || "ALL",
|
||||||
queryDuration: appStore.durationTime,
|
queryDuration: appStore.durationTime,
|
||||||
minTraceDuration: appStore.minTraceDuration || undefined,
|
minTraceDuration: Number(minTraceDuration.value),
|
||||||
maxTraceDuration: appStore.maxTraceDuration || undefined,
|
maxTraceDuration: Number(maxTraceDuration.value),
|
||||||
queryOrder: "BY_DURATION",
|
queryOrder: "BY_DURATION",
|
||||||
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
||||||
paging: { pageNum: 1, pageSize: 20 },
|
paging: { pageNum: 1, pageSize: 20 },
|
||||||
|
Loading…
Reference in New Issue
Block a user