From a2aeae997465c58c9b97db269e06ccbbb2a694a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Sat, 21 Nov 2026 11:38:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(jd-database):=202026-11-21=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8F=A3=E5=BE=84=E4=B8=89=E4=BB=B6=E2=80=94=E2=80=94?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E5=88=A0=E6=A0=87=E9=A2=98=E8=A1=8C=EF=BC=88?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=BE=80=E4=B8=8A=E6=91=86=E9=A1=B6=E9=BD=90?= =?UTF-8?q?=E4=BE=A7=E6=A0=8F=EF=BC=89=E3=80=81=E5=B7=A6=E5=8F=B3=E7=AD=89?= =?UTF-8?q?=E9=AB=98=E5=AF=B9=E9=BD=90=EF=BC=88stretch=EF=BC=8B=E4=BE=A7?= =?UTF-8?q?=E6=A0=8F=E5=86=85=E9=83=A8=E6=BB=9A=E5=8A=A8=E3=80=81=E7=AA=84?= =?UTF-8?q?=E5=B1=8F=E6=81=A2=E5=A4=8D=E4=B8=8A=E9=99=90=EF=BC=89=E3=80=81?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=88=86=E7=B1=BB/=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=BD=AE=E9=A1=B6=E8=B4=B4=20Tab=20=E8=A1=8C?= =?UTF-8?q?=EF=BC=9B=E5=88=A0=E9=99=A4=E5=95=86=E5=93=81=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=8C=89=E5=8E=9F=E5=9E=8B=E5=B9=B6=E5=85=A5=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=BB=84=E7=B4=A7=E8=B7=9F=E5=8F=96=E6=B6=88=E6=9C=AC=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/jd/JdCategorySidebar.vue | 56 ++++++++++++------- .../src/pages/jd/JdDatabasePage.vue | 32 +++++------ .../src/pages/jd/jd-database-page.css | 51 +++++++---------- 3 files changed, 72 insertions(+), 67 deletions(-) diff --git a/admin-frontend-vue/src/pages/jd/JdCategorySidebar.vue b/admin-frontend-vue/src/pages/jd/JdCategorySidebar.vue index 647c7eb2c..dcc3aa83e 100644 --- a/admin-frontend-vue/src/pages/jd/JdCategorySidebar.vue +++ b/admin-frontend-vue/src/pages/jd/JdCategorySidebar.vue @@ -234,8 +234,21 @@ function submitCreate(): void { - +
+
+ + +
+ +

{{ editable ? '本组暂无分类,先新建一个' : '本组暂无分类' }}

- -
- - -
-
@@ -276,11 +277,16 @@ function submitCreate(): void { border: 1px solid #e4e7ed; border-radius: 8px; overflow: hidden; - align-self: flex-start; + /* 左右高度对齐(2026-11-21 用户口径):侧栏外框随主面板拉满(页面容器已改 stretch), + 自身转纵向 flex——Tab 行固定、滚动区吃剩余高度,第三张截图红框那截空白带消失。 */ + display: flex; + flex-direction: column; + align-self: stretch; } .jd-sidebar-tabs { display: flex; + flex-shrink: 0; border-bottom: 1px solid #e4e7ed; } @@ -303,11 +309,21 @@ function submitCreate(): void { .jd-sidebar-body { display: flex; flex-direction: column; - max-height: 640px; + /* 等高对齐下的滚动区:放弃 640px 上限(上限会让宽屏侧栏短于主面板=又不对齐), + flex 吃满侧栏剩余高度,树/分类超出时内部滚动。窄屏(≤980px)侧栏整行摆放时 + 恢复上限,防树全展开把整页拉长(断点与页面装配层一致)。 */ + flex: 1 1 auto; + min-height: 0; overflow-y: auto; padding: 6px; } +@media (max-width: 980px) { + .jd-sidebar-body { + max-height: 480px; + } +} + .jd-side-row { display: flex; align-items: center; @@ -403,9 +419,9 @@ function submitCreate(): void { .jd-side-create { display: flex; gap: 6px; - margin-top: 8px; + /* 置顶档(2026-11-21 换位):贴 Tab 行下方,分隔虚线随位置挪到「分类管理」与列表之间。 */ + margin-top: 4px; padding: 6px 4px; - border-top: 1px dashed #e4e7ed; } .jd-side-create input { @@ -433,10 +449,12 @@ function submitCreate(): void { } .jd-side-manage { - margin-top: 8px; + margin-top: 0; + margin-bottom: 4px; padding: 6px 8px; border: none; - border-top: 1px dashed #e4e7ed; + /* 置顶档:虚线分隔「控制块 ↔ 分类列表」。 */ + border-bottom: 1px dashed #e4e7ed; background: transparent; color: #606266; font-size: 13px; diff --git a/admin-frontend-vue/src/pages/jd/JdDatabasePage.vue b/admin-frontend-vue/src/pages/jd/JdDatabasePage.vue index f5b12e257..29aba2117 100644 --- a/admin-frontend-vue/src/pages/jd/JdDatabasePage.vue +++ b/admin-frontend-vue/src/pages/jd/JdDatabasePage.vue @@ -434,11 +434,10 @@ onMounted(async () => { @manage-categories="openManage" /> +
-
-

京东数据库

-
-
@@ -500,12 +499,22 @@ onMounted(async () => { - +
+ -