From 1ffd9603772c94efea65adf518c607392f58d611 Mon Sep 17 00:00:00 2001 From: wanghanlin <1533525126@qq.com> Date: Wed, 2 Sep 2026 15:20:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(document):=20=E7=9B=AE=E5=BD=95=E6=A0=91?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E6=BB=9A=E5=8A=A8=E4=B8=8E=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E4=B8=8A=E4=BC=A0=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 文档列表目录树独立滚动 - 上传页目录选择器改为先选分类再选目录 - 文件夹上传标题剥离目录前缀(原样文件名) - 部分文件失败时弹窗按原因分组展示失败明细 --- frontend/src/views/DocList.vue | 70 ++++----- frontend/src/views/DocUpload.vue | 135 ++++++++++-------- .../supportbot/service/DocumentService.java | 22 ++- 3 files changed, 136 insertions(+), 91 deletions(-) diff --git a/frontend/src/views/DocList.vue b/frontend/src/views/DocList.vue index 2448e46..a89d473 100644 --- a/frontend/src/views/DocList.vue +++ b/frontend/src/views/DocList.vue @@ -7,34 +7,37 @@ 📁 文档目录 刷新 -
加载中...
- - + + @@ -522,18 +525,21 @@ loadData() .selected-count { font-size: 12px; font-weight: 600; color: var(--td-text-color-primary); } /* 左右分栏布局 */ -/* 卡片撑满内容区,实现左右独立滚动 */ -.doc-list-card { height: 100%; display: flex; flex-direction: column; } -.doc-list-card :deep(.t-card__body) { flex: 1; min-height: 0; overflow: hidden; } +/* 卡片锁定一屏高度,左右各自独立滚动 */ +.doc-list-card { height: calc(100vh - 48px); display: flex; flex-direction: column; } +.doc-list-card :deep(.t-card__body) { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; } -.doc-layout { display: flex; gap: 16px; align-items: stretch; height: 100%; } +.doc-layout { flex: 1; min-height: 0; display: flex; gap: 16px; align-items: stretch; } .doc-tree-panel { width: 240px; flex-shrink: 0; - overflow-y: auto; + display: flex; + flex-direction: column; + overflow: hidden; padding-right: 12px; border-right: 1px solid var(--color-border); } +.tree-panel-body { flex: 1; min-height: 0; } .doc-content { flex: 1; min-width: 0; overflow-y: auto; } .tree-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } diff --git a/frontend/src/views/DocUpload.vue b/frontend/src/views/DocUpload.vue index 898ceee..7b10d4b 100644 --- a/frontend/src/views/DocUpload.vue +++ b/frontend/src/views/DocUpload.vue @@ -9,11 +9,13 @@ v-model="uploadFolderId" :data="folderTreeData" :keys="{ value: 'value', label: 'label', children: 'children' }" + :disabled="!uploadCategory" clearable filterable - placeholder="选择目录(可选,默认分类根)" + placeholder="请先选择分类" size="small" style="width:240px;" + @change="onFolderChange" />
{{ tag }} @@ -50,13 +52,13 @@