Skip to content

Commit 9c23895

Browse files
committed
refactor: dashboard tab & sort
1 parent 6fb855c commit 9c23895

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

backend/apps/dashboard/crud/dashboard_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def list_resource(session: SessionDep, dashboard: QueryDashboard, current_user:
2222

2323
if filters:
2424
sql += " WHERE " + " AND ".join(filters)
25-
25+
sql += " ORDER BY create_time DESC"
2626
result = session.execute(text(sql), params)
2727
nodes = [DashboardBaseResponse(**row) for row in result.mappings()]
2828
tree = build_tree_generic(nodes, root_pid="root")

frontend/src/views/dashboard/components/sq-view/index.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ defineExpose({
2626
<div class="title">
2727
{{ viewInfo.chart.title }}
2828
</div>
29-
<div class="buttons-bar">
30-
<div class="chart-select-container"></div>
31-
</div>
3229
</div>
33-
<div style="height: 100%; width: 100%">
30+
<div class="chart-show-area">
3431
<ChartComponent
3532
v-if="viewInfo.id"
3633
:id="viewInfo.id"
@@ -51,6 +48,7 @@ defineExpose({
5148
width: 100%;
5249
height: 100%;
5350
background: #fff;
51+
padding: 12px !important;
5452
.header-bar {
5553
height: 32px;
5654
display: flex;

0 commit comments

Comments
 (0)