diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index 90a587b6..4010e9d3 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -76,13 +76,17 @@ @keydown="handleKeyDown" > - + + + @@ -157,13 +161,17 @@ @keydown="handleKeyDown" > - + + + @@ -183,6 +191,8 @@ import { LoadingOutlined } from '@ant-design/icons-vue'; import { message } from 'ant-design-vue'; import MessageInputComponent from '@/components/MessageInputComponent.vue' import AttachmentInputPanel from '@/components/AttachmentInputPanel.vue' +import AttachmentOptionsComponent from '@/components/AttachmentOptionsComponent.vue' +import AttachmentStatusIndicator from '@/components/AttachmentStatusIndicator.vue' import AgentMessageComponent from '@/components/AgentMessageComponent.vue' import ChatSidebarComponent from '@/components/ChatSidebarComponent.vue' import RefsComponent from '@/components/RefsComponent.vue' @@ -715,6 +725,12 @@ const handleAttachmentRemove = async (fileId) => { } }; +// 处理图片上传(开发中功能) +const handleImageUpload = () => { + // 图片上传功能暂未实现,在 AttachmentOptionsComponent 中已经显示了提示信息 + // 这里可以预留扩展接口 +}; + // ==================== 审批功能管理 ==================== const { approvalState, handleApproval, processApprovalInStream } = useApproval({ getThreadState, diff --git a/web/src/components/AttachmentOptionsComponent.vue b/web/src/components/AttachmentOptionsComponent.vue new file mode 100644 index 00000000..c56e6f12 --- /dev/null +++ b/web/src/components/AttachmentOptionsComponent.vue @@ -0,0 +1,133 @@ + + + + + + + + + 添加附件 + + + + + + + + + + 上传图片 + + + + + + + + + \ No newline at end of file diff --git a/web/src/components/AttachmentStatusIndicator.vue b/web/src/components/AttachmentStatusIndicator.vue new file mode 100644 index 00000000..f165eca4 --- /dev/null +++ b/web/src/components/AttachmentStatusIndicator.vue @@ -0,0 +1,299 @@ + + + + + + + 已上传附件 + + + + + + + {{ attachment.file_name }} + + {{ formatFileSize(attachment.file_size) }} · {{ getStatusLabel(attachment.status) }} + + + + + + + + + + + + + + + + + {{ attachments.length }} + + + + + + + + + + + \ No newline at end of file diff --git a/web/src/components/MessageInputComponent.vue b/web/src/components/MessageInputComponent.vue index 2d429e4b..eaba43bc 100644 --- a/web/src/components/MessageInputComponent.vue +++ b/web/src/components/MessageInputComponent.vue @@ -1,5 +1,6 @@ + - - - 没有配置 options - - + + 没有配置 options + @@ -23,6 +21,7 @@ + + +