From 985aa40f5a3d15d4f196297697430d877b473e04 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 06 一月 2025 13:53:48 +0800 Subject: [PATCH] 时间输入 --- src/components/chat/assistant/index.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/chat/assistant/index.vue b/src/components/chat/assistant/index.vue index 3bc4318..f410783 100644 --- a/src/components/chat/assistant/index.vue +++ b/src/components/chat/assistant/index.vue @@ -91,13 +91,12 @@ v-for="(multiChatItem, multiChatIndex) in subItem.subStep" > <component - :order="`${stepIndex + 1}-${multiChatIndex + 1}`" :item="multiChatItem" :is="multiChatTypeMapCom[multiChatItem.type]" + @change="multiChatChange" :disabled="!(stepIndex + 1 === msg?.stepGroup?.[index].value.length && isTalking && isLast)" /> - </div> </div> </template> @@ -110,7 +109,6 @@ 涓轰簡瑙e喅杩欎釜闂锛岀瓑鍒� msg.historyId 瀛樺湪鏃讹紝鍐嶆覆鏌� recordSetTable --> <component - v-if="msg.content?.values?.[index] && msg.historyId" :reportIndex="index" :conclusion="msg.content.values[index].conclusion" @@ -235,6 +233,7 @@ import { multiChatTypeMapCom } from '/@/components/chat/chatComponents/multiChat'; import { isSharePage } from '/@/stores/chatRoom'; import { ErrorCode } from '/@/utils/request'; +import { question_stream_reply } from '/@/api/ai/chat'; const props = defineProps({ /** @description 褰撳墠娑堟伅 */ @@ -293,6 +292,14 @@ emit('shareMsg', item); }; //#endregion + +const multiChatChange = async (replyId: string, val: any) => { + const res = await question_stream_reply({ + start_time: val.start_time, + end_time: val.end_time, + reply_id: replyId, + }); +}; </script> <style scoped lang="scss"> pre { -- Gitblit v1.9.3