From da615ab8971c73badd84ac664e3a9132b26dd47c Mon Sep 17 00:00:00 2001 From: Cold <16419454+cold502@user.noreply.gitee.com> Date: Fri, 26 Dec 2025 15:35:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BF=A9=E6=8E=A5=E5=8F=A3,?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=80=E4=BA=9B=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/customerService/account/index.ts | 18 ++ .../account/component/editAccount.vue | 41 +++- .../account/component/promptConfig.vue | 222 ++++++++++++++++++ src/views/customerService/account/index.vue | 34 ++- src/views/customerService/report/index.vue | 2 +- 5 files changed, 295 insertions(+), 22 deletions(-) create mode 100644 src/views/customerService/account/component/promptConfig.vue diff --git a/src/api/customerService/account/index.ts b/src/api/customerService/account/index.ts index 4d652c2..e144f53 100644 --- a/src/api/customerService/account/index.ts +++ b/src/api/customerService/account/index.ts @@ -35,3 +35,21 @@ export function updateAccount(data: object) { data: data, }); } + +//获取RAGFlow配置(提示词) +export function getRAGFlowConfig(params: object) { + return newService({ + url: '/customerService/ragflow/config/get', + method: 'get', + params: params, + }); +} + +//更新提示词 +export function updatePrompt(data: object) { + return newService({ + url: '/customerService/ragflow/config/updatePrompt', + method: 'post', + data: data, + }); +} diff --git a/src/views/customerService/account/component/editAccount.vue b/src/views/customerService/account/component/editAccount.vue index cb56bbf..b1bcd63 100644 --- a/src/views/customerService/account/component/editAccount.vue +++ b/src/views/customerService/account/component/editAccount.vue @@ -3,10 +3,10 @@ - + - - + + @@ -21,6 +21,23 @@ + + + + + + +
+ 提示:留空将使用系统默认提示词模板,创建后也可通过"配置提示词"按钮修改 +
+
+
+
- +