From 514778f64e7708db4443a1c93c902e8294939f50 Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期六, 17 八月 2024 11:10:03 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web
---
src/views/sessionManager/components/historySession.vue | 34 +++++++++++++++++++++++++++++++---
1 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/src/views/sessionManager/components/historySession.vue b/src/views/sessionManager/components/historySession.vue
index 23b3479..e7c9c5e 100644
--- a/src/views/sessionManager/components/historySession.vue
+++ b/src/views/sessionManager/components/historySession.vue
@@ -54,7 +54,7 @@
<img
:style="{ width: '16px' }"
alt="dessert"
- :src="session.avatar || imgSrc"
+ :src="session.icon ? httpUrl + session.icon : imgSrc"
/>
{{ session.name }}
</div>
@@ -101,6 +101,7 @@
const emit = defineEmits(["querySessionDetail","changeAgentType"]);
import logo from "@/assets/images/model.png";
import { deleteKnow } from "@/api/kbList";
+import { getAgentSessionDetailsApi } from "@/api/agentSession";
const sessionList = ref([]); //浼氳瘽鍒楄〃
const activeSessionId = ref("");
const fieldNames = { value: "id", label: "name" };
@@ -111,6 +112,7 @@
const searchValue = ref("");
const selectValue = ref("");
const sectionList = ref({});
+const httpUrl = localStorage.getItem('httpUrl');
const imgSrc = ref(logo);
const DialogList = async () => {
const { code, data } = await getDialogListApi();
@@ -198,8 +200,34 @@
const querySessionDetail = async (session) => {
console.log(session, 'session');
- emit('changeAgentType','1');
- emit('querySessionDetail',session);
+
+
+ // 鏌ヨ鍘嗗彶璁板綍
+ if (session.base == 'agent') {
+ // agent瀵硅薄鏁版嵁灏佽
+ // const { code, data } = await getAgentSessionDetailsApi(session.app_id);
+ // if (code == 0) {
+ // console.log(data,'浼氳瘽璇︽儏');
+ // let sessionObj = {
+ // id: session.app_id,
+ // dsl: data.dsl,
+ // title: session.name,
+ // }
+ //
+ // }
+ EventBus.emit("queryAgentSessionDetail",{
+ ...sessionObj,
+ id: session.app_id,
+ });
+ emit('changeAgentType','2');
+ } else {
+ // 鐢熸垚鏅鸿兘浣撴柊鐨勫璇�
+ emit('changeAgentType','1');
+ emit('querySessionDetail',session);
+ }
+
+
+
}
--
Gitblit v1.8.0