mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: dashboard tab & sort
This commit is contained in:
@@ -22,7 +22,7 @@ def list_resource(session: SessionDep, dashboard: QueryDashboard, current_user:
|
||||
|
||||
if filters:
|
||||
sql += " WHERE " + " AND ".join(filters)
|
||||
|
||||
sql += " ORDER BY create_time DESC"
|
||||
result = session.execute(text(sql), params)
|
||||
nodes = [DashboardBaseResponse(**row) for row in result.mappings()]
|
||||
tree = build_tree_generic(nodes, root_pid="root")
|
||||
|
||||
@@ -26,11 +26,8 @@ defineExpose({
|
||||
<div class="title">
|
||||
{{ viewInfo.chart.title }}
|
||||
</div>
|
||||
<div class="buttons-bar">
|
||||
<div class="chart-select-container"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 100%; width: 100%">
|
||||
<div class="chart-show-area">
|
||||
<ChartComponent
|
||||
v-if="viewInfo.id"
|
||||
:id="viewInfo.id"
|
||||
@@ -51,6 +48,7 @@ defineExpose({
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
padding: 12px !important;
|
||||
.header-bar {
|
||||
height: 32px;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user