mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 06:24:09 +00:00
fix
This commit is contained in:
parent
8fdf3c46a0
commit
a7b4533810
@ -81,7 +81,7 @@ limitations under the License. -->
|
|||||||
const latency = ref<boolean>(traceOpt.latency || false);
|
const latency = ref<boolean>(traceOpt.latency || false);
|
||||||
const enableRelate = ref<boolean>(traceOpt.enableRelate || false);
|
const enableRelate = ref<boolean>(traceOpt.enableRelate || false);
|
||||||
const type = ref<string>((graph && graph.type) || "");
|
const type = ref<string>((graph && graph.type) || "");
|
||||||
const refIdType = ref<string>(traceOpt.refIdType || "traceId");
|
const refIdType = ref<string>(traceOpt.refIdType || "");
|
||||||
|
|
||||||
function updateConfig(param: { [key: string]: unknown }) {
|
function updateConfig(param: { [key: string]: unknown }) {
|
||||||
const relatedTrace = {
|
const relatedTrace = {
|
||||||
|
@ -103,7 +103,6 @@ limitations under the License. -->
|
|||||||
});
|
});
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const filters = reactive<Recordable>(props.data.filters || {});
|
const filters = reactive<Recordable>(props.data.filters || {});
|
||||||
const owner = reactive<Recordable>(props.data.owner || {});
|
|
||||||
const appStore = useAppStoreWithOut();
|
const appStore = useAppStoreWithOut();
|
||||||
const selectorStore = useSelectorStore();
|
const selectorStore = useSelectorStore();
|
||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
@ -123,6 +122,7 @@ limitations under the License. -->
|
|||||||
init();
|
init();
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
|
console.log(props.data);
|
||||||
for (const d of Object.keys(filters)) {
|
for (const d of Object.keys(filters)) {
|
||||||
if (
|
if (
|
||||||
(d === "queryOrder" && filters[d] && filters[d] === QueryOrders[1].value) ||
|
(d === "queryOrder" && filters[d] && filters[d] === QueryOrders[1].value) ||
|
||||||
@ -134,16 +134,17 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
conditions.value = (items.value[0] && items.value[0].label) || "";
|
conditions.value = (items.value[0] && items.value[0].label) || "";
|
||||||
if (!filters.id) {
|
if (!filters.id) {
|
||||||
if (owner) {
|
if (!filters.owner) {
|
||||||
state.service = owner.serviceID;
|
return;
|
||||||
if (owner.scope === EntityType[2].value) {
|
|
||||||
state.endpoint = owner.endpointID;
|
|
||||||
}
|
|
||||||
if (owner.scope === EntityType[3].value) {
|
|
||||||
state.instance = owner.serviceInstanceID;
|
|
||||||
}
|
|
||||||
await queryTraces();
|
|
||||||
}
|
}
|
||||||
|
state.service = filters.owner.serviceID;
|
||||||
|
if (filters.owner.scope === EntityType[2].value) {
|
||||||
|
state.endpoint = filters.owner.endpointID;
|
||||||
|
}
|
||||||
|
if (filters.owner?.scope === EntityType[3].value) {
|
||||||
|
state.instance = filters.owner.serviceInstanceID;
|
||||||
|
}
|
||||||
|
await queryTraces();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (filters.isReadRecords) {
|
if (filters.isReadRecords) {
|
||||||
@ -220,6 +221,7 @@ limitations under the License. -->
|
|||||||
if (!isNaN(params.minTraceDuration)) {
|
if (!isNaN(params.minTraceDuration)) {
|
||||||
params.queryOrder = QueryOrders[1].value;
|
params.queryOrder = QueryOrders[1].value;
|
||||||
}
|
}
|
||||||
|
console.log(params);
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
async function queryTraces() {
|
async function queryTraces() {
|
||||||
|
Loading…
Reference in New Issue
Block a user