mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-04 09:45:24 +00:00
fix: update params
This commit is contained in:
parent
ea206b98b6
commit
3f6b70c66e
@ -62,8 +62,8 @@ limitations under the License. -->
|
|||||||
const destPodId = selectorStore.currentDestPod ? selectorStore.currentDestPod.id : null;
|
const destPodId = selectorStore.currentDestPod ? selectorStore.currentDestPod.id : null;
|
||||||
const destProcessId = selectorStore.currentDestProcess ? selectorStore.currentDestProcess.id : null;
|
const destProcessId = selectorStore.currentDestProcess ? selectorStore.currentDestProcess.id : null;
|
||||||
const duration = JSON.stringify({
|
const duration = JSON.stringify({
|
||||||
start: dates.value[0] || appStore.duration.start,
|
start: new Date(dates.value[0] || appStore.duration.start).getTime(),
|
||||||
end: dates.value[1] || appStore.duration.end,
|
end: new Date(dates.value[1] || appStore.duration.end).getTime(),
|
||||||
step: appStore.duration.step,
|
step: appStore.duration.step,
|
||||||
utc: appStore.utc,
|
utc: appStore.utc,
|
||||||
});
|
});
|
||||||
@ -73,10 +73,10 @@ limitations under the License. -->
|
|||||||
graph: dashboardStore.selectedGrid.graph,
|
graph: dashboardStore.selectedGrid.graph,
|
||||||
metrics: dashboardStore.selectedGrid.metrics,
|
metrics: dashboardStore.selectedGrid.metrics,
|
||||||
metricTypes: dashboardStore.selectedGrid.metricTypes,
|
metricTypes: dashboardStore.selectedGrid.metricTypes,
|
||||||
|
metricConfig: dashboardStore.selectedGrid.metricConfig,
|
||||||
});
|
});
|
||||||
widgetLink.value = hasDuration.value
|
const path = `/page/${dashboardStore.entity}/${serviceId}/${podId}/${processId}/${destServiceId}/${destPodId}/${destProcessId}/${config}`;
|
||||||
? `/page/${dashboardStore.entity}/${serviceId}/${podId}/${processId}/${destServiceId}/${destPodId}/${destProcessId}/${config}/${duration}`
|
widgetLink.value = hasDuration.value ? `${path}/${duration}` : path;
|
||||||
: `/page/${dashboardStore.entity}/${serviceId}/${podId}/${processId}/${destServiceId}/${destPodId}/${destProcessId}/${config}`;
|
|
||||||
}
|
}
|
||||||
function viewPage() {
|
function viewPage() {
|
||||||
const routeUrl = router.resolve({ path: widgetLink.value });
|
const routeUrl = router.resolve({ path: widgetLink.value });
|
||||||
|
@ -26,16 +26,16 @@ limitations under the License. -->
|
|||||||
<Icon iconName="info_outline" size="sm" class="operation" v-show="widget.tips" />
|
<Icon iconName="info_outline" size="sm" class="operation" v-show="widget.tips" />
|
||||||
</span>
|
</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-popover placement="bottom" trigger="click" :width="100" v-if="dashboardStore.editMode">
|
<el-popover placement="bottom" trigger="click" :width="100">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<span>
|
<span>
|
||||||
<Icon iconName="ellipsis_v" size="middle" class="operation" />
|
<Icon iconName="ellipsis_v" size="middle" class="operation" />
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<div class="tools" @click="editConfig">
|
<div class="tools" @click="editConfig" v-if="dashboardStore.editMode">
|
||||||
<span>{{ t("edit") }}</span>
|
<span>{{ t("edit") }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="tools" @click="removeWidget">
|
<div class="tools" @click="removeWidget" v-if="dashboardStore.editMode">
|
||||||
<span>{{ t("delete") }}</span>
|
<span>{{ t("delete") }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="tools" @click="generateLink">
|
<div class="tools" @click="generateLink">
|
||||||
|
Loading…
Reference in New Issue
Block a user