From 75410459eb785d3ff1a6048dfecb089fc31d523d Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 13 Jun 2025 17:17:01 +0800 Subject: [PATCH] fix: bug --- ui/src/api/application/chat-log.ts | 4 +- ui/src/api/knowledge/paragraph.ts | 10 +- ui/src/api/shared/paragraph.ts | 10 +- ui/src/api/user/user.ts | 22 ++- .../ai-chat/ExecutionDetailDialog.vue | 2 +- .../ai-chat/ParagraphSourceDialog.vue | 2 +- .../ai-chat/component/ParagraphCard.vue | 4 +- .../items/complex/ArrayObjectCard.vue | 4 +- ui/src/components/folder-tree/index.vue | 2 +- .../generate-related-dialog/index.vue | 6 +- ui/src/components/infinite-scroll/index.vue | 4 +- ui/src/enums/application.ts | 2 +- ui/src/enums/common.ts | 4 +- ui/src/enums/workflow.ts | 2 +- ui/src/layout/components/breadcrumb/index.vue | 28 ++- .../layout-header/avatar/AboutDialog.vue | 22 +-- .../lang/en-US/views/application-workflow.ts | 2 +- .../lang/zh-CN/views/application-workflow.ts | 4 +- .../zh-Hant/views/application-workflow.ts | 2 +- .../router/modules/document-shared-system.ts | 2 +- ui/src/router/modules/document.ts | 2 +- ui/src/stores/modules/application.ts | 50 +++--- ui/src/stores/modules/chat-log.ts | 48 +++--- .../component/DropdownMenu.vue | 12 +- .../component/PublishHistory.vue | 16 +- ui/src/views/application-workflow/index.vue | 12 +- .../views/application/ApplicationAccess.vue | 14 +- .../component/AccessSettingDrawer.vue | 10 +- .../component/CopyApplicationDialog.vue | 50 +++--- .../component/TTSModeParamSettingDialog.vue | 46 ++--- .../chat-log/component/EditContentDialog.vue | 60 +++---- .../chat-log/component/EditMarkDialog.vue | 6 +- ui/src/views/chat-log/index.vue | 24 +-- ui/src/views/chat/pc/EditTitleDialog.vue | 4 +- .../user-login/scanCompinents/QrCodeTab.vue | 4 +- .../scanCompinents/dingtalkQrCode.vue | 4 +- .../user-login/scanCompinents/wecomQrCode.vue | 4 +- ...etDialog.vue => SelectKnowledgeDialog.vue} | 0 ui/src/views/document-shared-system/index.vue | 54 +++--- .../upload/ResultSuccess.vue | 28 +-- .../component/SelectKnowledgeDialog.vue | 20 +-- ui/src/views/document/index.vue | 44 ++--- .../views/document/upload/ResultSuccess.vue | 28 +-- ui/src/views/document/upload/SetRules.vue | 2 +- ui/src/views/hit-test-shared-system/index.vue | 14 +- ui/src/views/hit-test/index.vue | 14 +- .../ImportDocumentKnowledge.vue | 14 +- .../KnowledgeSetting.vue | 20 +-- .../CreateLarkKnowledgeDialog.vue | 20 ++- .../knowledge/ImportDocumentKnowledge.vue | 24 +-- ui/src/views/knowledge/KnowledgeSetting.vue | 20 +-- .../CreateLarkKnowledgeDialog.vue | 10 +- ui/src/views/login/index.vue | 62 +++---- .../views/login/scanCompinents/QrCodeTab.vue | 4 +- .../login/scanCompinents/dingtalkQrCode.vue | 4 +- .../login/scanCompinents/wecomQrCode.vue | 4 +- .../component/ProblemComponent.vue | 6 +- .../component/SelectDocumentDialog.vue | 46 ++--- .../paragraph/component/ProblemComponent.vue | 6 +- .../component/DetailProblemDrawer.vue | 6 +- .../component/RelateProblemDialog.vue | 6 +- .../problem/component/DetailProblemDrawer.vue | 18 +- .../problem/component/RelateProblemDialog.vue | 6 +- .../component/CreateMemberDialog.vue | 119 ------------- .../component/PermissionSetting.vue | 10 +- .../views/role/component/AddMemberDrawer.vue | 122 +++++++------ .../group/component/CreateGroupDialog.vue | 20 +-- ui/src/views/system-chat-user/group/index.vue | 10 +- .../workspace/component/AddMemberDrawer.vue | 18 +- ui/src/workflow/common/data.ts | 22 +-- ui/src/workflow/nodes/ai-chat-node/index.vue | 2 +- .../workflow/nodes/application-node/index.vue | 161 +++++++++--------- .../nodes/document-extract-node/index.vue | 1 - .../workflow/nodes/function-lib-node/index.ts | 12 -- .../workflow/nodes/image-generate/index.vue | 26 +-- .../workflow/nodes/image-understand/index.vue | 7 +- ui/src/workflow/nodes/mcp-node/index.vue | 21 +-- ui/src/workflow/nodes/question-node/index.vue | 28 ++- ui/src/workflow/nodes/reply-node/index.vue | 2 +- ui/src/workflow/nodes/reranker-node/index.vue | 41 ++--- .../nodes/search-knowledge-node/index.vue | 88 +++++----- .../nodes/speech-to-text-node/index.vue | 7 +- .../nodes/text-to-speech-node/index.vue | 25 +-- ui/src/workflow/nodes/tool-lib-node/index.ts | 12 ++ .../index.vue | 35 ++-- .../{function-node => tool-node}/index.ts | 8 +- .../{function-node => tool-node}/index.vue | 0 87 files changed, 856 insertions(+), 925 deletions(-) rename ui/src/views/document-shared-system/component/{SelectDatasetDialog.vue => SelectKnowledgeDialog.vue} (100%) delete mode 100644 ui/src/views/resource-authorization/component/CreateMemberDialog.vue delete mode 100644 ui/src/workflow/nodes/function-lib-node/index.ts create mode 100644 ui/src/workflow/nodes/tool-lib-node/index.ts rename ui/src/workflow/nodes/{function-lib-node => tool-lib-node}/index.vue (84%) rename ui/src/workflow/nodes/{function-node => tool-node}/index.ts (52%) rename ui/src/workflow/nodes/{function-node => tool-node}/index.vue (100%) diff --git a/ui/src/api/application/chat-log.ts b/ui/src/api/application/chat-log.ts index a626baff8..508ad2796 100644 --- a/ui/src/api/application/chat-log.ts +++ b/ui/src/api/application/chat-log.ts @@ -127,7 +127,7 @@ const putChatRecordLog: ( loading, ) => { return put( - `${prefix}/${application_id}/chat/${chart_id}/chat_record/${chart_record_id}/dataset/${knowledge_id}/document/${document_id}/improve`, + `${prefix}/${application_id}/chat/${chart_id}/chat_record/${chart_record_id}/knowledge/${knowledge_id}/document/${document_id}/improve`, data, undefined, loading, @@ -137,7 +137,7 @@ const putChatRecordLog: ( /** * 删除标注 * @param 参数 - * application_id, chart_id, chart_record_id, dataset_id, document_id,paragraph_id + * application_id, chart_id, chart_record_id, knowledge_id, document_id,paragraph_id */ const delMarkChatRecord: ( application_id: String, diff --git a/ui/src/api/knowledge/paragraph.ts b/ui/src/api/knowledge/paragraph.ts index a75c64838..b710a878c 100644 --- a/ui/src/api/knowledge/paragraph.ts +++ b/ui/src/api/knowledge/paragraph.ts @@ -225,7 +225,7 @@ const putMigrateMulParagraph: ( loading, ) => { return put( - `${prefix}/${knowledge_id}/document/${document_id}/paragraph/migrate/dataset/${target_knowledge_id}/document/${target_document_id}`, + `${prefix}/${knowledge_id}/document/${document_id}/paragraph/migrate/knowledge/${target_knowledge_id}/document/${target_document_id}`, data, undefined, loading, @@ -234,19 +234,19 @@ const putMigrateMulParagraph: ( /** * 解除某段落关联问题 - * @param 参数 dataset_id, document_id, + * @param 参数 knowledge_id, document_id, * @query data { * paragraph_id 段落id problem_id 问题id * } */ const putDisassociationProblem: ( - dataset_id: string, + knowledge_id: string, document_id: string, data: any, loading?: Ref, -) => Promise> = (dataset_id, document_id, data, loading) => { +) => Promise> = (knowledge_id, document_id, data, loading) => { return put( - `${prefix}/${dataset_id}/document/${document_id}/paragraph/unassociation`, + `${prefix}/${knowledge_id}/document/${document_id}/paragraph/unassociation`, {}, data, loading, diff --git a/ui/src/api/shared/paragraph.ts b/ui/src/api/shared/paragraph.ts index 4dd725cc9..ff4bbb435 100644 --- a/ui/src/api/shared/paragraph.ts +++ b/ui/src/api/shared/paragraph.ts @@ -225,7 +225,7 @@ const putMigrateMulParagraph: ( loading, ) => { return put( - `${prefix}/${knowledge_id}/document/${document_id}/paragraph/migrate/dataset/${target_knowledge_id}/document/${target_document_id}`, + `${prefix}/${knowledge_id}/document/${document_id}/paragraph/migrate/knowledge/${target_knowledge_id}/document/${target_document_id}`, data, undefined, loading, @@ -234,19 +234,19 @@ const putMigrateMulParagraph: ( /** * 解除某段落关联问题 - * @param 参数 dataset_id, document_id, + * @param 参数 knowledge_id, document_id, * @query data { * paragraph_id 段落id problem_id 问题id * } */ const putDisassociationProblem: ( - dataset_id: string, + knowledge_id: string, document_id: string, data: any, loading?: Ref, -) => Promise> = (dataset_id, document_id, data, loading) => { +) => Promise> = (knowledge_id, document_id, data, loading) => { return put( - `${prefix}/${dataset_id}/document/${document_id}/paragraph/unassociation`, + `${prefix}/${knowledge_id}/document/${document_id}/paragraph/unassociation`, {}, data, loading, diff --git a/ui/src/api/user/user.ts b/ui/src/api/user/user.ts index a67a84928..99b60ff9b 100644 --- a/ui/src/api/user/user.ts +++ b/ui/src/api/user/user.ts @@ -1,6 +1,6 @@ import { Result } from '@/request/Result' import { get, post } from '@/request/index' -import type { User } from '@/api/type/user' +import type { User, ResetPasswordRequest } from '@/api/type/user' import type { Ref } from 'vue' /** @@ -29,12 +29,28 @@ const getProfile: (loading?: Ref) => Promise> = (loading) = /** * 获取全部用户 */ -const getUserList: (loading?: Ref) => Promise[]>> = (loading) => { +const getUserList: (loading?: Ref) => Promise[]>> = ( + loading, +) => { return get('/user/list', undefined, loading) } +/** + * 重置密码 + * @param request 重置密码请求参数 + * @param loading 接口加载器 + * @returns + */ +const resetPassword: ( + request: ResetPasswordRequest, + loading?: Ref, +) => Promise> = (request, loading) => { + return post('/user/re_password', request, undefined, loading) +} + export default { getUserProfile, getProfile, - getUserList + getUserList, + resetPassword, } diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index 0ea0faabe..e799f65d6 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -151,7 +151,7 @@ -