From 577529c7ad2cc1231d3030ed009faec71cda0254 Mon Sep 17 00:00:00 2001
From: han2015 <1019850453@qq.com>
Date: Mon, 13 Oct 2025 15:22:06 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=99=BA=E8=83=BD=E4=BD=93=EF=BC=9A?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=E4=BC=9A=E8=AF=9D=E5=88=86=E4=BA=AB=E5=92=8C?=
=?UTF-8?q?=E5=A4=8D=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/doc/space.ts | 25 +++++
src/router/index.ts | 5 +
src/views/doc/agent.vue | 69 +++++++++++++-
src/views/doc/showtext.vue | 183 +++++++++++++++++++++++++++++++++++++
4 files changed, 277 insertions(+), 5 deletions(-)
create mode 100644 src/views/doc/showtext.vue
diff --git a/src/api/doc/space.ts b/src/api/doc/space.ts
index 219160e..2013476 100644
--- a/src/api/doc/space.ts
+++ b/src/api/doc/space.ts
@@ -220,4 +220,29 @@ export function getAiagentList(data?: any){
method: 'post',
data: data
});
+}
+
+/**
+ * 更新会话
+ * @requires key
+ *
+ */
+export function getShareChat(key: string){
+ return request({
+ url: '/aibot/chat/shared/'+key,
+ method: 'get',
+ });
+}
+
+/**
+ * 更新会话
+ * @requires key agentID+chatID+index
+ * @requires data
+ */
+export function newShareChat(data: any){
+ return request({
+ url: '/aibot/chat/share',
+ method: 'post',
+ data: data
+ });
}
\ No newline at end of file
diff --git a/src/router/index.ts b/src/router/index.ts
index 6267e9b..5cd96e8 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -38,6 +38,11 @@ export const constantRoutes: RouteRecordRaw[] = [
component: () => import("@/views/doc/onlyoffice.vue"),
meta: { hidden: true },
},
+ {
+ path: "/agent",
+ component: () => import("@/views/doc/showtext.vue"),
+ meta: { hidden: true },
+ },
{
path: "/",
diff --git a/src/views/doc/agent.vue b/src/views/doc/agent.vue
index b8d70e4..d638872 100644
--- a/src/views/doc/agent.vue
+++ b/src/views/doc/agent.vue
@@ -5,11 +5,11 @@
-->
+
+
+
+
+
恒信高科AI平台
+
+ {{ msg.content }}
+
+
+
+
+
+
+
+
+
+
+
+
From fcd40cf1ce0d980415675bb0a089e1c4c1d030e4 Mon Sep 17 00:00:00 2001
From: han2015 <1019850453@qq.com>
Date: Mon, 20 Oct 2025 15:07:13 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BA=91=E7=9B=98=EF=BC=9A=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=E5=A4=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 2 +-
src/views/doc/agent.vue | 4 ++++
src/views/doc/manage.vue | 3 ++-
src/views/doc/space.vue | 2 +-
4 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/.env.production b/.env.production
index d3ed364..40853e2 100644
--- a/.env.production
+++ b/.env.production
@@ -7,4 +7,4 @@ VITE_APP_TOKEN_KEY = 'onlineAccessSystemAppToken'
VITE_APP_SJZT_URL = 'http://120.224.6.6:29911/prod-api'
VITE_OFFICE_HOST='https://gyhlw.hxgk.group/kkapi'
VITE_ONLYOFFICE_HOST = 'https://gyhlw.hxgk.group/onlyoffice'
-VITE_DEFAULT_AI_AGENT = '23a3c2c5-2de1-40df-59fa-a9206b11861d'
\ No newline at end of file
+VITE_DEFAULT_AI_AGENT = '74938263-ffe5-43c5-90af-25e62d34a51f'
\ No newline at end of file
diff --git a/src/views/doc/agent.vue b/src/views/doc/agent.vue
index d638872..1942a07 100644
--- a/src/views/doc/agent.vue
+++ b/src/views/doc/agent.vue
@@ -37,6 +37,10 @@ const props = withDefaults(defineProps<{
const respMsg=ref("")
+watch(props,()=>{
+ currentAgent.value=props.agent
+})
+
//消息体
interface message{
ask:boolean,
diff --git a/src/views/doc/manage.vue b/src/views/doc/manage.vue
index dcd0e87..4a9bb33 100644
--- a/src/views/doc/manage.vue
+++ b/src/views/doc/manage.vue
@@ -347,7 +347,8 @@ function onLoadMatterList(){
}
//----------for dir-----------
function createDir(){
- if(matterList.value){
+ if(matterList.value.length>0){
+ //防止多次新建目录
if (matterList.value[0].name=="") return;
}
matterList.value?.unshift({
diff --git a/src/views/doc/space.vue b/src/views/doc/space.vue
index 645d87a..b512691 100644
--- a/src/views/doc/space.vue
+++ b/src/views/doc/space.vue
@@ -482,7 +482,7 @@ function handleAiUpload(info:matterInfo){
})
})
}else{
- alert("当前路径没有智能体")
+ console.log("当前路径没有智能体,不需要训练")
}
}
From 422c95034cdadad8b9c0fe72d2d79560fe7e0320 Mon Sep 17 00:00:00 2001
From: han2015 <1019850453@qq.com>
Date: Mon, 20 Oct 2025 16:27:46 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BA=91=E7=9B=98=EF=BC=9A=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E7=A9=BA=E9=97=B4=E5=AD=90=E7=9B=AE=E5=BD=95=E7=9A=84?=
=?UTF-8?q?=E6=9D=83=E9=99=90=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/doc/space.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/doc/space.vue b/src/views/doc/space.vue
index b512691..e7c5d88 100644
--- a/src/views/doc/space.vue
+++ b/src/views/doc/space.vue
@@ -234,6 +234,7 @@ function onLoadMatterList(name?:string){
}).map(val => {
const copy = structuredClone(toRaw(val))
copy.dir = !copy.dir
+ copy.manager=props.ismanager
return copy
})