mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 12:45:25 +00:00
set tool
This commit is contained in:
parent
206de21092
commit
601fa0e7bf
@ -46,9 +46,11 @@ const layer = ref<string>("GENERAL");
|
|||||||
getDashboard();
|
getDashboard();
|
||||||
|
|
||||||
async function getDashboard() {
|
async function getDashboard() {
|
||||||
|
setLayer(String(route.name));
|
||||||
|
dashboardStore.setLayer(layer.value);
|
||||||
|
dashboardStore.setEntity(EntityType[0].value);
|
||||||
dashboardStore.setMode(false);
|
dashboardStore.setMode(false);
|
||||||
dashboardStore.setCurrentDashboard(null);
|
dashboardStore.setCurrentDashboard(null);
|
||||||
setLayer(String(route.name));
|
|
||||||
await dashboardStore.setDashboards();
|
await dashboardStore.setDashboards();
|
||||||
const index = dashboardStore.dashboards.findIndex(
|
const index = dashboardStore.dashboards.findIndex(
|
||||||
(d: { name: string; isRoot: boolean; layer: string; entity: string }) =>
|
(d: { name: string; isRoot: boolean; layer: string; entity: string }) =>
|
||||||
@ -97,8 +99,6 @@ function setLayer(n: string) {
|
|||||||
layer.value = "GENERAL";
|
layer.value = "GENERAL";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dashboardStore.setLayer(layer.value);
|
|
||||||
dashboardStore.setEntity(EntityType[1].value);
|
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
() => route.name,
|
() => route.name,
|
||||||
|
@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<Tool v-if="dashboardStore.editMode" />
|
<Tool />
|
||||||
<div
|
<div
|
||||||
class="ds-main"
|
class="ds-main"
|
||||||
@click="handleClick"
|
@click="handleClick"
|
||||||
|
@ -72,7 +72,7 @@ limitations under the License. -->
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tool-icons">
|
<div class="tool-icons" v-if="dashboardStore.editMode">
|
||||||
<span
|
<span
|
||||||
@click="clickIcons(t)"
|
@click="clickIcons(t)"
|
||||||
v-for="(t, index) in toolIcons"
|
v-for="(t, index) in toolIcons"
|
||||||
@ -127,9 +127,10 @@ const states = reactive<{
|
|||||||
currentDestService: "",
|
currentDestService: "",
|
||||||
currentDestPod: "",
|
currentDestPod: "",
|
||||||
});
|
});
|
||||||
|
if (params.layerId) {
|
||||||
dashboardStore.setLayer(params.layerId);
|
dashboardStore.setLayer(params.layerId);
|
||||||
dashboardStore.setEntity(params.entity);
|
dashboardStore.setEntity(params.entity);
|
||||||
|
}
|
||||||
appStore.setEventStack([initSelector]);
|
appStore.setEventStack([initSelector]);
|
||||||
|
|
||||||
initSelector();
|
initSelector();
|
||||||
|
Loading…
Reference in New Issue
Block a user