diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts
index 11b630f13..3762256e0 100644
--- a/ui/src/api/type/application.ts
+++ b/ui/src/api/type/application.ts
@@ -41,6 +41,7 @@ interface chatType {
vote_status: string
status?: number,
execution_details: any[]
+ upload_meta?: any[]
}
export class ChatRecordManage {
diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue
index bc3f2e160..dd403b15d 100644
--- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue
+++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue
@@ -50,21 +50,48 @@
参数输入
-
用户问题: {{ item.question || '-' }}
-
- {{ f.label }}: {{ f.value }}
+
+ 用户问题:
+ {{ item.question || '-' }}
+
+
+ {{ f.label }}: {{ f.value }}
- 上传的文档:
-
- {{ f.name }}
-
+
上传的文档:
+
+
+
+ {{ f.name }}
+
+
+
![]()
+
+ {{ f && f?.name }}
+
+
+
+
+
- 上传的图片:
-
- {{ f.name }}
-
+
上传的图片:
+
+
+
+
+
+
@@ -308,6 +335,7 @@ import ParagraphCard from './component/ParagraphCard.vue'
import { arraySort } from '@/utils/utils'
import { iconComponent } from '@/workflow/icons/utils'
import { WorkflowType } from '@/enums/workflow'
+import { getImgUrl } from '@/utils/utils'
const dialogVisible = ref(false)
const detail = ref
([])
diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue
index 81c327c8e..0174c1612 100644
--- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue
+++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue
@@ -9,7 +9,7 @@
v-if="uploadDocumentList.length || uploadImageList.length"
>
-
+
-
+
()
const document_list = computed(() => {
- return []
+ if (props.chatRecord?.upload_meta) {
+ return props.chatRecord.upload_meta?.document_list || []
+ } else if (props.chatRecord.execution_details?.length > 0) {
+ return props.chatRecord.execution_details[0]?.document_list || []
+ } else {
+ return []
+ }
})
const image_list = computed(() => {
- if (props.chatRecord.execution_details?.length > 0) {
- return props.chatRecord.execution_details[0].image_list
+ if (props.chatRecord?.upload_meta) {
+ return props.chatRecord.upload_meta?.image_list || []
+ } else if (props.chatRecord.execution_details?.length > 0) {
+ return props.chatRecord.execution_details[0]?.image_list || []
} else {
return []
}