mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-06-29 10:07:36 +00:00
fix
This commit is contained in:
parent
48bccba3d6
commit
b0f21d4d14
@ -19,7 +19,7 @@ import { Traces, TraceSpans, TraceTagKeys, TraceTagValues, TraceSpansFromColdSta
|
|||||||
|
|
||||||
export const queryTraces = `query queryTraces(${Traces.variable}) {${Traces.query}}`;
|
export const queryTraces = `query queryTraces(${Traces.variable}) {${Traces.query}}`;
|
||||||
|
|
||||||
export const querySpans = `query queryTrace(${TraceSpans.variable}) {${TraceSpans.query}}`;
|
export const querySpans = `query querySpans(${TraceSpans.variable}) {${TraceSpans.query}}`;
|
||||||
|
|
||||||
export const queryTraceTagKeys = `query queryTraceTagKeys(${TraceTagKeys.variable}) {${TraceTagKeys.query}}`;
|
export const queryTraceTagKeys = `query queryTraceTagKeys(${TraceTagKeys.variable}) {${TraceTagKeys.query}}`;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ limitations under the License. -->
|
|||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
<div class="title" v-else>{{ pageTitle }}</div>
|
<div class="title" v-else>{{ pageTitle }}</div>
|
||||||
<div class="app-config">
|
<div class="app-config">
|
||||||
<span class="red" v-show="timeRange">{{ t("timeTips") }}</span>
|
<span class="red" v-show="showTimeRangeTips">{{ t("timeTips") }}</span>
|
||||||
<TimePicker
|
<TimePicker
|
||||||
:value="[appStore.durationRow.start, appStore.durationRow.end]"
|
:value="[appStore.durationRow.start, appStore.durationRow.end]"
|
||||||
:maxRange="appStore.maxRange"
|
:maxRange="appStore.maxRange"
|
||||||
@ -103,7 +103,7 @@ limitations under the License. -->
|
|||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const pathNames = ref<{ path?: string; name: string; selected: boolean }[][]>([]);
|
const pathNames = ref<{ path?: string; name: string; selected: boolean }[][]>([]);
|
||||||
const timeRange = ref<number>(0);
|
const showTimeRangeTips = ref<boolean>(false);
|
||||||
const pageTitle = ref<string>("");
|
const pageTitle = ref<string>("");
|
||||||
const theme = ref<boolean>(true);
|
const theme = ref<boolean>(true);
|
||||||
const themeSwitchRef = ref<HTMLElement>();
|
const themeSwitchRef = ref<HTMLElement>();
|
||||||
@ -215,8 +215,8 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
|
|
||||||
function changeTimeRange(val: Date[]) {
|
function changeTimeRange(val: Date[]) {
|
||||||
timeRange.value = val[1].getTime() - val[0].getTime() > 60 * 24 * 60 * 60 * 1000 ? 1 : 0;
|
showTimeRangeTips.value = val[1].getTime() - val[0].getTime() > 60 * 24 * 60 * 60 * 1000;
|
||||||
if (timeRange.value) {
|
if (showTimeRangeTips.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
appStore.setDuration(timeFormat(val));
|
appStore.setDuration(timeFormat(val));
|
||||||
|
@ -25,7 +25,7 @@ import type { MenuOptions, SubItem, MetricsTTL, RecordsTTL } from "@/types/app";
|
|||||||
import { Themes } from "@/constants/data";
|
import { Themes } from "@/constants/data";
|
||||||
/*global Nullable*/
|
/*global Nullable*/
|
||||||
interface AppState {
|
interface AppState {
|
||||||
durationRow: Recordable;
|
durationRow: Duration;
|
||||||
utc: string;
|
utc: string;
|
||||||
utcHour: number;
|
utcHour: number;
|
||||||
utcMin: number;
|
utcMin: number;
|
||||||
|
Loading…
Reference in New Issue
Block a user