This commit is contained in:
Qiuxia Fan 2022-07-29 10:47:23 +08:00
parent 01a7cd3736
commit deecce3985
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,6 @@ import getDashboard from "@/hooks/useDashboardsSession";
import { useAppStoreWithOut } from "@/store/modules/app"; import { useAppStoreWithOut } from "@/store/modules/app";
import dateFormatStep, { dateFormatTime } from "@/utils/dateFormat"; import dateFormatStep, { dateFormatTime } from "@/utils/dateFormat";
import getLocalTime from "@/utils/localtime"; import getLocalTime from "@/utils/localtime";
import { enumDeclaration } from "@babel/types";
const eventStore = useEventStore(); const eventStore = useEventStore();
/*global defineProps, Nullable */ /*global defineProps, Nullable */

View File

@ -143,6 +143,7 @@ import { ElMessage } from "element-plus";
import { EntityType } from "../../data"; import { EntityType } from "../../data";
import { ErrorCategory } from "./data"; import { ErrorCategory } from "./data";
import { LayoutConfig } from "@/types/dashboard"; import { LayoutConfig } from "@/types/dashboard";
import { DurationTime } from "@/types/app";
/*global defineProps, Recordable */ /*global defineProps, Recordable */
const props = defineProps({ const props = defineProps({
@ -160,7 +161,7 @@ const logStore = useLogStore();
const traceId = ref<string>( const traceId = ref<string>(
(props.data.filters && props.data.filters.traceId) || "" (props.data.filters && props.data.filters.traceId) || ""
); );
const duration = ref<any>( const duration = ref<DurationTime>(
(props.data.filters && props.data.filters.duration) || appStore.durationTime (props.data.filters && props.data.filters.duration) || appStore.durationTime
); );
const keywordsOfContent = ref<string[]>([]); const keywordsOfContent = ref<string[]>([]);

View File

@ -105,7 +105,7 @@ 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 { LayoutConfig } from "@/types/dashboard"; import { LayoutConfig } from "@/types/dashboard";
// import { Duration, DurationTime } from "@/types/app"; import { DurationTime } from "@/types/app";
/*global defineProps, Recordable */ /*global defineProps, Recordable */
const props = defineProps({ const props = defineProps({
@ -123,7 +123,7 @@ const appStore = useAppStoreWithOut();
const selectorStore = useSelectorStore(); const selectorStore = useSelectorStore();
const dashboardStore = useDashboardStore(); const dashboardStore = useDashboardStore();
const traceStore = useTraceStore(); const traceStore = useTraceStore();
const duration = ref<any>( const duration = ref<DurationTime>(
(props.data.filters && props.data.filters.duration) || appStore.durationTime (props.data.filters && props.data.filters.duration) || appStore.durationTime
); );
const minTraceDuration = ref<number>(); const minTraceDuration = ref<number>();