diff --git a/ui/src/views/VIEW_README.md b/ui/src/views/VIEW_README.md index 0a35081bb31..e623a99f078 100644 --- a/ui/src/views/VIEW_README.md +++ b/ui/src/views/VIEW_README.md @@ -797,7 +797,7 @@ Web 来源地址与选择器仅在单项设置中编辑,批量设置不展示 文档任务是否排队或执行中通过其中的 `isDocumentTaskRunning(document, taskType)` 判断, 页面及 Action 不重复解析状态字符串;文档或任务状态缺失时返回 `false`。 `EmbeddingDocumentAction` 负责单项向量化与取消向量化,`BatchEmbeddingAction` 负责批量向量化按钮,`GenerateQuestionsAction` 负责单项生成问题与取消生成,`BatchGenerateQuestionsAction` 负责批量生成问题,`SettingDocumentAction` 负责召回及来源设置, -`MigrateDocumentAction` 选择目标知识库,`DocumentTagsAction` 添加已有标签和移除文档标签关联; +`MigrateDocumentAction` 选择目标知识库;`setting-tags/DocumentTagsAction.vue` 暂仅提供“标签设置”入口按钮。 生成问题复用公共配置弹窗,其余 Action 按下文维护各自专属弹窗。组件接收完整 Document API、知识库 ID、文档 ID 或文档数组及禁用状态, 点击时快照本次操作对象,内部管理弹窗和请求,成功后通过 `refresh` 通知页面刷新,失败保留输入。 迁移操作集中在 `document/action-dropdown/migrate/`,`MigrateDocumentAction.vue` 负责入口与弹窗按需挂载, diff --git a/ui/src/views/knowledge-detail/library/document/action-dropdown/DocumentTagsAction.vue b/ui/src/views/knowledge-detail/library/document/action-dropdown/DocumentTagsAction.vue deleted file mode 100644 index 0570101b4f3..00000000000 --- a/ui/src/views/knowledge-detail/library/document/action-dropdown/DocumentTagsAction.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - diff --git a/ui/src/views/knowledge-detail/library/document/action-dropdown/index.ts b/ui/src/views/knowledge-detail/library/document/action-dropdown/index.ts index 4c981687feb..49e2ab1e31d 100644 --- a/ui/src/views/knowledge-detail/library/document/action-dropdown/index.ts +++ b/ui/src/views/knowledge-detail/library/document/action-dropdown/index.ts @@ -1,7 +1,7 @@ export { default as BatchEmbeddingAction } from './embedding/BatchEmbeddingAction.vue' export { default as BatchCancelTaskAction } from './BatchCancelTaskAction.vue' export { default as DeleteDocumentAction } from './DeleteDocumentAction.vue' -export { default as DocumentTagsAction } from './DocumentTagsAction.vue' +export { default as DocumentTagsAction } from './setting-tags/DocumentTagsAction.vue' export { default as EmbeddingDocumentAction } from './embedding/EmbeddingDocumentAction.vue' export { default as GenerateQuestionsAction } from './generate-questions/GenerateQuestionsAction.vue' export { default as BatchGenerateQuestionsAction } from './generate-questions/BatchGenerateQuestionsAction.vue' diff --git a/ui/src/views/knowledge-detail/library/document/action-dropdown/setting-tags/DocumentTagsAction.vue b/ui/src/views/knowledge-detail/library/document/action-dropdown/setting-tags/DocumentTagsAction.vue new file mode 100644 index 00000000000..7b14cb061a6 --- /dev/null +++ b/ui/src/views/knowledge-detail/library/document/action-dropdown/setting-tags/DocumentTagsAction.vue @@ -0,0 +1,9 @@ + + + diff --git a/ui/src/views/knowledge-detail/library/document/index.vue b/ui/src/views/knowledge-detail/library/document/index.vue index b306958d610..302bd15ca96 100644 --- a/ui/src/views/knowledge-detail/library/document/index.vue +++ b/ui/src/views/knowledge-detail/library/document/index.vue @@ -32,6 +32,7 @@ import { BatchEmbeddingAction, BatchCancelTaskAction, DeleteDocumentAction, + DocumentTagsAction, EmbeddingDocumentAction, GenerateQuestionsAction, BatchGenerateQuestionsAction, @@ -364,7 +365,7 @@ onBeforeUnmount(() => { v-loading="loading || operationLoading" :data="documentData" v-model:pagination-config="paginationConfig" - :max-table-height="210" + :max-table-height="240" @current-change="loadDocuments()" @size-change="loadDocuments()" @selection-change="handleSelectionChange" @@ -514,15 +515,8 @@ onBeforeUnmount(() => { :document="row" @refresh="refreshAfterOperation" /> - - + + - +