mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 21:15:25 +00:00
fix: update style
This commit is contained in:
parent
f7c2c8549b
commit
d71cd66fa1
@ -50,7 +50,7 @@ limitations under the License. -->
|
|||||||
</div>
|
</div>
|
||||||
<div class="tab-layout">
|
<div class="tab-layout">
|
||||||
<grid-layout
|
<grid-layout
|
||||||
v-if="dashboardStore.currentTabItems.length"
|
v-if="dashboardStore.currentTabItems"
|
||||||
v-model:layout="dashboardStore.currentTabItems"
|
v-model:layout="dashboardStore.currentTabItems"
|
||||||
:col-num="24"
|
:col-num="24"
|
||||||
:row-height="10"
|
:row-height="10"
|
||||||
@ -106,9 +106,11 @@ export default defineComponent({
|
|||||||
const activeTabIndex = ref<number>(0);
|
const activeTabIndex = ref<number>(0);
|
||||||
const activeTabWidget = ref<string>("");
|
const activeTabWidget = ref<string>("");
|
||||||
const editTabIndex = ref<number>(NaN); // edit tab item name
|
const editTabIndex = ref<number>(NaN); // edit tab item name
|
||||||
|
const l = dashboardStore.layout.findIndex(
|
||||||
|
(d: LayoutConfig) => d.i === props.data.i
|
||||||
|
);
|
||||||
dashboardStore.setCurrentTabItems(
|
dashboardStore.setCurrentTabItems(
|
||||||
dashboardStore.layout[props.data.i].children[activeTabIndex.value]
|
dashboardStore.layout[l].children[activeTabIndex.value].children
|
||||||
.children
|
|
||||||
);
|
);
|
||||||
|
|
||||||
function clickTabs(e: Event, idx: number) {
|
function clickTabs(e: Event, idx: number) {
|
||||||
@ -117,9 +119,11 @@ export default defineComponent({
|
|||||||
dashboardStore.activeGridItem(props.data.i);
|
dashboardStore.activeGridItem(props.data.i);
|
||||||
dashboardStore.selectWidget(props.data);
|
dashboardStore.selectWidget(props.data);
|
||||||
dashboardStore.setActiveTabIndex(idx);
|
dashboardStore.setActiveTabIndex(idx);
|
||||||
|
const l = dashboardStore.layout.findIndex(
|
||||||
|
(d: LayoutConfig) => d.i === props.data.i
|
||||||
|
);
|
||||||
dashboardStore.setCurrentTabItems(
|
dashboardStore.setCurrentTabItems(
|
||||||
dashboardStore.layout[props.data.i].children[activeTabIndex.value]
|
dashboardStore.layout[l].children[activeTabIndex.value].children
|
||||||
.children
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
function removeTab(e: Event) {
|
function removeTab(e: Event) {
|
||||||
@ -150,8 +154,13 @@ export default defineComponent({
|
|||||||
`${props.data.i}-${activeTabIndex.value}-${item.i}`
|
`${props.data.i}-${activeTabIndex.value}-${item.i}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
function layoutUpdatedEvent(newLayout: LayoutConfig[]) {
|
function layoutUpdatedEvent() {
|
||||||
dashboardStore.setCurrentTabItems(newLayout);
|
const l = dashboardStore.layout.findIndex(
|
||||||
|
(d: LayoutConfig) => d.i === props.data.i
|
||||||
|
);
|
||||||
|
dashboardStore.setCurrentTabItems(
|
||||||
|
dashboardStore.layout[l].children[activeTabIndex.value].children
|
||||||
|
);
|
||||||
}
|
}
|
||||||
document.body.addEventListener("click", handleClick, false);
|
document.body.addEventListener("click", handleClick, false);
|
||||||
watch(
|
watch(
|
||||||
|
@ -128,10 +128,10 @@ export default defineComponent({
|
|||||||
watch(
|
watch(
|
||||||
() => [props.data.metricTypes, props.data.metrics],
|
() => [props.data.metricTypes, props.data.metrics],
|
||||||
() => {
|
() => {
|
||||||
if (!dashboardStore.selectedGrid) {
|
if (
|
||||||
return;
|
dashboardStore.selectedGrid &&
|
||||||
}
|
props.data.i !== dashboardStore.selectedGrid.i
|
||||||
if (props.data.i !== dashboardStore.selectedGrid.i) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (TableChartTypes.includes(dashboardStore.selectedGrid.graph.type)) {
|
if (TableChartTypes.includes(dashboardStore.selectedGrid.graph.type)) {
|
||||||
|
@ -73,11 +73,8 @@ function loadTrees(l: boolean) {
|
|||||||
|
|
||||||
.t-loading {
|
.t-loading {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 70px;
|
|
||||||
margin-top: 40px;
|
|
||||||
line-height: 88px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
height: calc(50% - 50px);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -35,16 +35,18 @@ limitations under the License. -->
|
|||||||
{{ t("analyze") }}
|
{{ t("analyze") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Table
|
<div class="profile-table">
|
||||||
:data="profileStore.segmentSpans"
|
<Table
|
||||||
:traceId="
|
:data="profileStore.segmentSpans"
|
||||||
profileStore.currentSegment.traceIds &&
|
:traceId="
|
||||||
profileStore.currentSegment.traceIds[0]
|
profileStore.currentSegment.traceIds &&
|
||||||
"
|
profileStore.currentSegment.traceIds[0]
|
||||||
:showBtnDetail="true"
|
"
|
||||||
headerType="profile"
|
:showBtnDetail="true"
|
||||||
@select="selectSpan"
|
headerType="profile"
|
||||||
/>
|
@select="selectSpan"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@ -158,10 +160,14 @@ function updateTimeRange() {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
height: 50%;
|
height: 50%;
|
||||||
overflow: auto;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.profile-table {
|
||||||
|
height: calc(100% - 30px);
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.profile-trace-detail-wrapper {
|
.profile-trace-detail-wrapper {
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
|
Loading…
Reference in New Issue
Block a user